Search code examples
sql-servervb.netsql-server-2000

How do I connect to SQL Server 2000, using vb.net 4.0 i get an exception


How do I connect to SQL Server 2000 using vb.net 4.0?

I get an exception when trying to connect to a local SQL Server 2000 instance, when using a trusted_Connection=True and using System.Data.SqlClient as the provider.


Solution

  • When using .Net 4.0 i figured out that i need to use OleDb provider, the SQL Provider doesn't work with SQL Server 2000.