Re: Can't Open OleDb Connection to Access Database
From: Scott M. (NoSpam_at_NoSpam.com)
Date: 03/16/05
- Next message: Kevin Yu [MSFT]: "RE: Initialize read-only column in typed dataset to NULL?"
- Previous message: Val Mazur \(MVP\): "Re: How to Perform SQL Select on a DataSet"
- In reply to: David: "Can't Open OleDb Connection to Access Database"
- Next in thread: Val Mazur \(MVP\): "Re: Can't Open OleDb Connection to Access Database"
- Reply: Val Mazur \(MVP\): "Re: Can't Open OleDb Connection to Access Database"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Mar 2005 20:14:13 -0600
When setting the data source in the connection string, you must put a full
physical path to the Access db. Indicating a server share is not
acceptable.
"David" <deaton@nospamever.dsnonline.org> wrote in message
news:%231L7FmcKFHA.484@TK2MSFTNGP15.phx.gbl...
> I'm trying to open an OleDb connection to an Access .mdb file to fill a
> datareader and display the records in a datagrid on a web form (using
> Visual Studio .NET). It all works great when the .mdb file is local, but
> when I try to connect to an .mdb file on a network share, the web page
> displays, "The Microsoft Jet database engine cannot open the file
> '\\CoSvr2\backends$\Base.mdb'. It is already opened exclusively by another
> user, or you need permission to view its data." But the file isn't open
> and granting full control permissions on the share to everyone doesn't
> work. Any help would be greatly appreciated!
> David
>
- Next message: Kevin Yu [MSFT]: "RE: Initialize read-only column in typed dataset to NULL?"
- Previous message: Val Mazur \(MVP\): "Re: How to Perform SQL Select on a DataSet"
- In reply to: David: "Can't Open OleDb Connection to Access Database"
- Next in thread: Val Mazur \(MVP\): "Re: Can't Open OleDb Connection to Access Database"
- Reply: Val Mazur \(MVP\): "Re: Can't Open OleDb Connection to Access Database"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|