Connection string

  • Thread starter Thread starter Alan T
  • Start date Start date
A

Alan T

I am going to connect to the MySQL and Firebird database.
Is there any differenc in the connection string format from that of SQL
Server?
 
Hi,

|I am going to connect to the MySQL and Firebird database.
| Is there any differenc in the connection string format from that of SQL
| Server?

For sure yes, first of all you will have to connect to them using ODBC
whether to SQL server you connect using the OLEDB provider.
 
MySQL provides connector/.NET. These are a set of classes equivalent to the
SQL classes. So, for example, where you have SqlConnection for SQL Server,
you have MySqlConnection for MySQL. As long as you have used the correct
classes (i.e. the ones from connector/.NET) the code is practically
identical. I've added the connector/.NET classes to my toolbox in Visual
Studio, so I can drag and drop them onto a design surface in just the same
way, and configure their properties.

http://dev.mysql.com/downloads/connector/net/1.0.html

Don't know about firebird. Never used it.

HTH


Peter
 
Ignacio said:
|I am going to connect to the MySQL and Firebird database.
| Is there any differenc in the connection string format from that of SQL
| Server?

For sure yes, first of all you will have to connect to them using ODBC
whether to SQL server you connect using the OLEDB provider.

????

You use SqlClient for SQLServer and MySQL Connector/.NET for MySQL.

Arne
 
Hi

| ????
|
| You use SqlClient for SQLServer and MySQL Connector/.NET for MySQL.

Yes, Now I know there is a data provider for MySQL, I had no idea it existed
before ;)
 
|I am going to connect to the MySQL and Firebird database.
| Is there any differenc in the connection string format from that of SQL
| Server?

For sure yes, first of all you will have to connect to them using ODBC
whether to SQL server you connect using the OLEDB provider.

There is a .NET provider for Firebird too. The documentation contains
info on the connection strings, IIRC.

-- Barry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top