Hi
I have a .VBS file - contents below:
=====================================================================
dataBaseRoot = "d:\Servers\byers\data\mmailing\"
DBConLS = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
dataBaseRoot & "data\listShares.mdb"
set ConLS = CreateObject("ADODB.Connection")
ConLS.Open DBConLS
=====================================================================
When I double click on it, the error shown below is generated.
---------------------------
Windows Script Host
---------------------------
Script: D:\Servers\Byers\wwwroot\mmailing\connectionTest.vbs
Line: 7
Char: 1
Error: Provider is not specified and there is no designated default
provider.
Code: 800A0EA9
Source: ADODB.Connection
---------------------------
OK
---------------------------
I have a Classic ASP file - contents below
=====================================================================
dataBaseRoot = "d:\Servers\byers\data\mmailing\"
DBConLS = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" &
dataBaseRoot & "data\listShares.mdb"
set ConLS = Server.CreateObject("ADODB.Connection")
ConLS.Open DBConLS
=====================================================================
When I run the ASPage in Internet Explorer - it runs OK
(and actually Opens the Database)
I have tried the "Jet" provider - same results
I have Installed the latest MDAC (2.8)
Why does it work in the ASP but not in the VBS
(It works on other servers - but not this new one)
THE SERVER IS
Operating System Microsoft Windows Server 2003, Standard Edition
OS Service Pack Service Pack 2
Internet Explorer 7.0.5730.11
DirectX 4.09.00.0904 (DirectX 9.0c)
Thank you
Pete (Northolt UK)