A
Arun Nair
Hi,
I am trying to connect to a remote SQL Server 2000 on a local lan in
C#. I have tried the following connection string:
connectionString = "DSN=empex;SERVER=SARK011/Test;DATABASE=empexchange;Network=DBMSSOCN;Address=172.21.1.11;UID=anair;PWD=anair;";
and
connectionString = "Provider=SQLOLEDB;Data Source=empex;Initial
Catalog=panchayatNetwork=DBMSSOCN;;User
Id=panchayat;Password=panchayat"
With both of this I get the following error:
Index#0
Message:[DBNETLIB][Connection open(Connect()).]Specified SQL server
not found.
Native:6
Source:Microsoft OLE DB Provider for SQL Server
SQL:08001
I am able to connect to both the database thru the ODBC Data Source
Administrator tool.
What am i doing wrong?
I able to connect to the NorthWind database with any problem.
I am able to connect to the other two databases from VB6 and Java
thanks,
Arun
I am trying to connect to a remote SQL Server 2000 on a local lan in
C#. I have tried the following connection string:
connectionString = "DSN=empex;SERVER=SARK011/Test;DATABASE=empexchange;Network=DBMSSOCN;Address=172.21.1.11;UID=anair;PWD=anair;";
and
connectionString = "Provider=SQLOLEDB;Data Source=empex;Initial
Catalog=panchayatNetwork=DBMSSOCN;;User
Id=panchayat;Password=panchayat"
With both of this I get the following error:
Index#0
Message:[DBNETLIB][Connection open(Connect()).]Specified SQL server
not found.
Native:6
Source:Microsoft OLE DB Provider for SQL Server
SQL:08001
I am able to connect to both the database thru the ODBC Data Source
Administrator tool.
What am i doing wrong?
I able to connect to the NorthWind database with any problem.
I am able to connect to the other two databases from VB6 and Java
thanks,
Arun