It's hard to say with certainty, but I do have a guess. :)
First, understand that there are certain "providers" installed on the computer along with the operating system. OLEDB happens to be one of them.
In order to use a certain provider, you may need to install it. You mentioned that this is a classic asp site you are working on, which probably simplifies things a bit because you would only need to install the provider on the web server.
There is a way you can tell which providers are installed on a computer. Right click the desktop, click New, Click Text Document. Change the extension to UDL, and then double click on this file. You should see a window called "Data Link Properties". Click on the "Provider" tab.
At this point, you will see a list of providers that are installed on the computer. I guarantee you will see "Microsoft OLEDB Provider for SQL Server" because you said this one works. I suspect you will NOT see "SQL Server Native Client 10.0" (when you do this on the web server).
To install the provider, go to:
http://www.microsoft.com/en-us/download/details.as...
There are a lot of things to download on this page. If your server has a 64 bit operating system, then you will want this one: 1033\x64\sqlncli.msi
If the server has a 32 bit operating system, get this one:
1033\x86\sqlncli.msi
Once you install the provider on the web server, you should be able to use it in your connection string. -George
Microsoft SQL Server MVP
My Blogs
SQLCop
twitter
"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom |
|