Hi,
I know VB.net has created separate components when connecting to a db, depending on one's needs. My question is, am I right to assume that:
1. Dim con1 as SQLClient.SQLConnection
-only is good for .\SQLExpress (SQL 2005 express edition) and Access DB
2. Dim con1 as OLEdb.OLEdbConnection
- is good for connecting to SQL Servers (2000,2005)
3. Dim con1 as Odbc.OdbcSQLConnection
- is good for ODBC-defined data sources?
Will they work when used interchangeably with Access, SQLServer SQL Server Express?
Thanks
I know VB.net has created separate components when connecting to a db, depending on one's needs. My question is, am I right to assume that:
1. Dim con1 as SQLClient.SQLConnection
-only is good for .\SQLExpress (SQL 2005 express edition) and Access DB
2. Dim con1 as OLEdb.OLEdbConnection
- is good for connecting to SQL Servers (2000,2005)
3. Dim con1 as Odbc.OdbcSQLConnection
- is good for ODBC-defined data sources?
Will they work when used interchangeably with Access, SQLServer SQL Server Express?
Thanks