bozo7
asked on
ADO MSSQL 2000
I am using ADO with D5 enterprise. With all updates applied.
I have no problems running the program but when the users try to run it they get the following error message 'Specified SQL Server not found'. I am using the OLE DB Provider for SQL Server, Windows NT integrated Security, I have the correct database selected with the users given rights to that database.
All of us are running Windows 2000 Prof. with all updates applied. I thought MDAC was installed with Win2k. Is it? I don't remember installing it on my machine.
Ross
I have no problems running the program but when the users try to run it they get the following error message 'Specified SQL Server not found'. I am using the OLE DB Provider for SQL Server, Windows NT integrated Security, I have the correct database selected with the users given rights to that database.
All of us are running Windows 2000 Prof. with all updates applied. I thought MDAC was installed with Win2k. Is it? I don't remember installing it on my machine.
Ross
Btw, you posted this question twice...
ASKER
I will try that.
ASKER
Nope I specified the username and password and the same error.
Ross
Ross
Can the clients 'ping' to the server?
ASKER
Yes, They can Terminal Server to it and browse the network to find it. So they can see the server on the network.
Is there a way to define the connection string at runtime? I noticed that the connection string has my computer name it. I assume that ADO changes that at runtime but just in case.
Does it matter if they are running the exe off a network drive?
Ross
Is there a way to define the connection string at runtime? I noticed that the connection string has my computer name it. I assume that ADO changes that at runtime but just in case.
Does it matter if they are running the exe off a network drive?
Ross
ASKER
I figured out why that error message occurs. We are using TCP/IP on our SQL server not named pipes. ODBC by default is using Named Pipes. I went into the ODBC manager and created a connection, told it to use TCP/IP, deleted that connection, and now my program works.
So is there a way to tell ado to use tcpip not named pipes?
So is there a way to tell ado to use tcpip not named pipes?
ODBC??? Why using ODBC? You don't need it at all.
ASKER
I am not using ODBC but I went into the ODBC Connection Manager and told it to use TCP/IP not named pipes and then my ADO connection worked. I don't know why but it does. Now I trying to figure out how to use TCP/IP not named pipes with ADO by default.
That's weird...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That is the other thing I was wondering. I know that ADO allows you to connect to MSSQL without the client connection tools, but does it work better if we install them? Do we need to install both MDAC (for none Win2k clients) and the client connection tools?
Probably is best to do that is suppose.
Ross
Probably is best to do that is suppose.
Ross
ASKER
Not what I was hoping for but it works. It also works if you just install the MDAC components. I think I will go that route rather than install SQL Server libs on all the computers.
Ross
Ross
Hi,
Well, indeed installing the MDAC components on the Client PC's should do the trick too.
Best regards,
Stefaan
Well, indeed installing the MDAC components on the Client PC's should do the trick too.
Best regards,
Stefaan
- Firewall is blocking the connection (unlikely)
- Servername is unknown to clients
- Security misconfiguration
Can the clients connect using a specified username and password?