SQLConnection

M

Maileen

Hi,

Is the SQLConnection component only for SQL Server (from MS) or can we
use it for MySQL and PostgreSQL too ?

Because when i use the OdbcConnection component, and try to debug my
application, i have a "database connection was disabled" message after a
long timeout...and i do not know what did generate this long time out.

thanks a lot,
Maileen
 
M

Miha Markic [MVP C#]

SqlConnection is Sql Server only.
You have to use MySQL custom one (or whatever database) or OleDbConnection
which uses OleDb.
 
C

Cor Ligthert [MVP]

Maileen,

I have seen the question from you answered in another newsgroup.

Cor
 
W

W.G. Ryan - MVP

Everythign in SqlClient is only usable with SqlServer. And although you can
use OleDb for Sql Server, I'd shy away from a generic approach and opt for a
provider specific approach for each db I'm interacting with. You can use a
Factory pattern to implement this functionality quite easily.

HTH,

Bill
 

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

Top