Re: ASP.NET & Access Database!
From: Andy Lim (admin_at_infoteknika.com)
Date: 11/15/04
- Next message: Lan H. Nguyen: "passing parameters to hyperlink control"
- Previous message: Andy Lim: "Re: Parameters in Crystal Reports.Net"
- In reply to: blantz: "ASP.NET & Access Database!"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Nov 2004 03:11:04 +0700
try to use DSN, and refer to it in your connection string instead of
hardcoding your MDB location path.
HTH,
andy
"blantz" <brian.lantz@asahq.com> wrote in message
news:18d35b42.0411151101.3df1766e@posting.google.com...
> I am trying to connect to an Access database on a network drive and
> the web server is on the same network, i.e. G:\sample\test.mdb and
> everytime I try to connect to it I get an error saying...
> 'G:\sample\test.mdb' is not a valid path. Make sure that the path name
> is spelled correctly and that you are connected to the server on which
> the file resides. I then tried giving the full path to the server,
> i.e. \\webserver\c:\inetpub\... but got the same error.
>
> When I move the database to my local computer it works fine. Here is
> the connection string I am trying to use.
>
> Provider=Microsoft.Jet.OLEDB.4.0;
> Data Source=G:\sample\test.mdb;
>
>
> When I connect via regular ASP using this custom connection string,
> everything works correct... any ideas?
>
> "Driver={Microsoft Access Driver (*.mdb)}; Dbq=G:\sample\test.mdb"
- Next message: Lan H. Nguyen: "passing parameters to hyperlink control"
- Previous message: Andy Lim: "Re: Parameters in Crystal Reports.Net"
- In reply to: blantz: "ASP.NET & Access Database!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|