VB.NET 2010 connect to sql server 2000 using ole db on win 7 64bit

When using VB.NET 2010 to connect to SQL SERVER 2000 Database that secure with password using OLE DB we can use this following connection string:

Provider=SQLOLEDB;Data Source=<server instance name>;Password=<password>;User ID=<user>;Initial Catalog=<databaseName>


Public conSql As New OleDbConnection
Public conStrSqlServer As String = “Provider=SQLOLEDB;Data Source=<server instance name>;Password=<password>;User ID=<user>;Initial Catalog=<databaseName>”

conSql.ConnectionString = conStrSqlServer

The main point if you use win 7 64 bit is don’t forget to set your debug platform to x86 or you will find an error.



About evocruzader

I am a honest, energetic, cool, n fun... gather near me and u will live with full of joy n fun. ^^
This entry was posted in DBA, IT, Pemrograman, VB.NET and tagged , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s