This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2004 > DSN Connection?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author DSN Connection?
tread684

2004-02-23, 1:28 am

This may not really be reated to Utra CArt II other than i am trying to get it
work. I changed servers and the new server doesn't use a DSN. Instead the
kindly supplied the following code:
<%
Dim DBPath,objRS,objConn
DBPath="/file.mdb"
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="Driver={Microsoft Access Driver (*.mdb)};DBQ=" &
Server.mappath(DBPath)
objConn.Open
Set objRS=Server.CreateObject("ADODB.Recordset")
%>

which i mutated into the file (asims.asp) that was previously used for
database connection in the "connections" folder:
<%
Dim DBPath,objRS,objConn
DBPath="/file.mdb"
Set objConn=Server.CreateObject("ADODB.Connection")
objConn.ConnectionString="Driver={Microsoft Access Driver (*.mdb)};DBQ=" &
Server.mappath(DBPath)
objConn.Open
Set objRS=Server.CreateObject("ADODB.Recordset")
%>
yes this works, and I can see that existing code is accessing the database and
performing the different operations. now...
locally, dreamweaver mx, in the application windows under the database tab is
no longer showing the database or fields.
any ideas? Thanks

Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews