|
-
Jun 10th, 2003, 03:39 AM
#1
Thread Starter
Registered User
Problem with webservice connecting to SQL server
Hi!
I have a problem with a simple web service that is querying a SQL sever, if I use the service to connect to a SQL 2000 server it works fine, but if I connect to the 6.5 server that the 2000 server was upsized from I get the following error:
[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
The 2 servers have the same security settings, in truth the security setting is lower on the 6.5 (all machines and users in the network can access it as "sa" with no password).
Anyone know what the problem might be....?
-
Jun 10th, 2003, 06:30 AM
#2
Fanatic Member
are you using:
imports system.data.sqlclient
?
if so i think this is only for sql 2000 servers. you will have to use system.data.oledb for sql server 7 and before.
-
Jun 10th, 2003, 06:47 AM
#3
Thread Starter
Registered User
nope I'm using Oledb....
I also tried to download the ODBC .NET sdk and tried to connect. Still works on 2000 but not on 6.5, and the same error but from the ODBC provider instead:
ERROR [08001] [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.
ERROR [01000] [Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()).
-
Jun 10th, 2003, 08:18 AM
#4
Thread Starter
Registered User
new updates
My recent try was with classic ADO..... same error on 6.5, works on 2000.
Always works if I copy the code and put it in a Windows Application instead of Web service.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|