whats my DSN.........help me

hi.whats my dsn. i dont know.please help me.thankx



ConnString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" &
Server.MapPath("db/mem.mdb")

set my_conn= Server.CreateObject("ADODB.Connection")
RS.open Sql,my_conn,1,3
mehdi.webmaster [ So, 01 April 2007 22:29 ] [ ID #1675019 ]

Re: whats my DSN.........help me

mehdi.webmaster [at] gmail.com wrote:
> hi.whats my dsn. i dont know.please help me.thankx
>
>
>
> ConnString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" &
> Server.MapPath("db/mem.mdb")
>
You neither have one nor need one.

Actually, the connection string should be:
ConnString = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("db/mem.mdb")

http://www.aspfaq.com/show.asp?id=2126

--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
reb01501 [ So, 01 April 2007 23:24 ] [ ID #1675020 ]
Webserver » microsoft.public.inetserver.asp.db » whats my DSN.........help me

Vorheriges Thema: Question about pull down menus on asp forms.
Nächstes Thema: WRITE SQL DATA TO LOCAL MACHINE