Hi,
I have a maillist script. I was use this script in access database system. Some part of the code:
Uemail=lcase(request.form("email"))
subs=request.form("subs")
dsn="DBQ=" & Server.Mappath("../../database/subs.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("adodb.connection")
set rs=server.createobject("adodb.recordset")
sql = "select * from emails where emails='"&Uemail&"'"
conn.open dsn
rs.open sql,conn
select case subs
'in case someOne wants to join the list
case "1"
Now , I changed my access db to ms sql 2005 db from DTS. I wrote new connectin code, maybe it is not correct.
strdsn.Open "driver={SQL Server};server=BORA\SQLEXPRESS;database=bora;Uid=bora1;Pwd=11111"
but i m receiving this error:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/maillist/maillist.asp, line 39
What can i do? Thank you.
I have a maillist script. I was use this script in access database system. Some part of the code:
Uemail=lcase(request.form("email"))
subs=request.form("subs")
dsn="DBQ=" & Server.Mappath("../../database/subs.mdb") & ";Driver={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("adodb.connection")
set rs=server.createobject("adodb.recordset")
sql = "select * from emails where emails='"&Uemail&"'"
conn.open dsn
rs.open sql,conn
select case subs
'in case someOne wants to join the list
case "1"
Now , I changed my access db to ms sql 2005 db from DTS. I wrote new connectin code, maybe it is not correct.
strdsn.Open "driver={SQL Server};server=BORA\SQLEXPRESS;database=bora;Uid=bora1;Pwd=11111"
but i m receiving this error:
Microsoft VBScript runtime error '800a01a8'
Object required: ''
/maillist/maillist.asp, line 39
What can i do? Thank you.