Forums
This topic is locked
Connecting to db using global.asa
Posted 11 Apr 2005 19:14:13
1
has voted
11 Apr 2005 19:14:13 Simon Howell posted:
Hi, being the closeted Dreamweaver user that I am, I have no clue how to connect to a db using a global.asa. A hosted application I work on was recently moved to a new hosting company and they insist on using global.asa instead of the connection include file I normally use for ASP. The application works just fine on the remote site, but locally Dreamweaver cannot locate any connections anymore. Consequently I have loads of red exclamation marks on my bindings and the connection wizards are not accessible.If anyone can tell me how to connect using the global.asa I would be very grateful.
Here's the code they put in the global.asa:
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
SUB Application_OnStart
Application("MM_connProject_STRING" = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("db\project.mdb"
END SUB
SUB Application_OnEnd
Set Application("MM_connProject_STRING" = Nothing
END SUB
</SCRIPT>
Simon
STUDIO MX 2004