hi,
got to
Start > Settings > ControlPanel > Odbc..
and create a file DSN this should be done on the server itself.
OR
u want to create this on the fly i.e during runtime ???
1.]
firstly u would not require to create it at runtime as it's always a better optoin to do it before hand. but still if need be, u would do it thru vb and create a coomponent or so and use it in ur ASP page. Exampple in VB ->
2.] Easier way to do it is refer to the file DSN like ->
Set ConLog = Server.CreateObject("adodb.connection"
ConLog.Open "Driver={Microsoft Access Driver (*.mdb)};DBQ=c:\user.mdb;pwd=sauser001"
Set rs = ConLog.Execute("select * from table"
u will have to check for proper name for SQL server (ummmm i think it's "SQL Server" pls check.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.