mjoesting
asked on
Provider error '80040e4d'
Experts;
My code is generating the following error(on the connection string line):
Provider error '80040e4d'
Authentication failed.
dim conn, rs, sql, connstr
set conn = Server.CreateObject("ADODB .Connectio n")
set rs = Server.CreateObject("ADODB .Recordset ")
connstr = "Microsoft.Jet.OLEDB.4.0;D ata Source=" &_
response.write(Server.MapP ath("ts2in centives.m db")) &_
";User ID=ts2incentives;Password= Passw0rd;"
conn.open connstr
sql = "select * from PINs;"
set rs = conn.Execute(sql)
My code is generating the following error(on the connection string line):
Provider error '80040e4d'
Authentication failed.
dim conn, rs, sql, connstr
set conn = Server.CreateObject("ADODB
set rs = Server.CreateObject("ADODB
connstr = "Microsoft.Jet.OLEDB.4.0;D
response.write(Server.MapP
";User ID=ts2incentives;Password=
conn.open connstr
sql = "select * from PINs;"
set rs = conn.Execute(sql)
ASKER
This code worked for me:
dim conn, rs, sql, connstr
set conn = Server.CreateObject("ADODB .Connectio n")
connstr="Driver={Microsoft Access Driver (*.mdb)};" &_
"filedsn=d:\hosting\ts2inc entives\te st\access_ ts2incenti ves.dsn;" &_
"DBQ=d:\hosting\ts2incenti ves\test\t s2incentiv es.mdb;" &_
"UID=ts2incentives;PWD=Pas sw0rd;"
conn.open connstr
sql = "select * from PINs;"
dim conn, rs, sql, connstr
set conn = Server.CreateObject("ADODB
connstr="Driver={Microsoft
"filedsn=d:\hosting\ts2inc
"DBQ=d:\hosting\ts2incenti
"UID=ts2incentives;PWD=Pas
conn.open connstr
sql = "select * from PINs;"
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
connstr = "Microsoft.Jet.OLEDB.4.0;D