Use
Dim dsnname
dsnname = Application("XXXXX_ConnectionString")
set objcon = Server.CreateObject("ADODB.Connection")
objcon.Open dsnname
The value for XXXXX above is the value you see when you open the global.asa file (in your root)
Usually in the line
Application("XXXXX_ConnectionString") = "........;DRIVER={Microsoft Access Driver (*.mdb)}"
--
| Thanks
| I can't see anything that says dsn the connection code I am trying to
| change is
|
| 'making connection to database
| set objcon=server.createObject("aadodb.connection")
| 'opening database
| objcon.open "dsn=dsnname"
|
| Thanks
| Paul M
|
|
| | > If it was created using the DIW then you can look in the global.asa file.
| >
| > --
| > Mike -- FrontPage MVP '97-'02
| > J-Bots 2004 Released Special Pricing
| >
http://www.websunlimited.com
| > FrontPage Add-ins Since '97 FP 2003 / 2002 / 2000 Compatible
| >
| | > > Hi
| > > How do I find out the dsn connection string for an access database
| stored in
| > > the fpdb folder of a website
| > > Thank
| > > Paul M
| > >
| > >
| >
| >
|
|