Hi there,
If you don't specify a path for the database, the server will assume the "current folder" which, in the case of ASP Scripts, is the System32 folder.
You can use Server.MapPath to transform a virtual location to a fixed location:
"Data Source=" & Server.MapPath("Movies2000.mdb")
this will return something like c:\inetpub\wwwroot\YourAccountName\Movies2000.mdb which is the physical location of the file.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
|