473,386 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

ConnectionString with Microsoft Jet OLEDB

Hi all,
I'm approaching at .Net for make up a site but I have a problem with
web.config. I'm trying to use an *.mdb file as db, and I'd think to
use this:
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=\db\db2.mdb" />

but server response me so:
ArgumentException: key word 'provider' not supported

and I'm finding no info about use *.mdb file...

Where I can find some info about?

Thanks
Gianluca
Jul 21 '05 #1
3 1635
You should be specifying the full physical path to the database, not a
relative path.
Dim con as New Ole.OleDbConnection("Provider=Microsoft.JET.OLEDB. 4.0;Data
Source=C:\...."

"Gianluca_Venezia" <te************@yahoo.it> wrote in message
news:58**************************@posting.google.c om...
Hi all,
I'm approaching at .Net for make up a site but I have a problem with
web.config. I'm trying to use an *.mdb file as db, and I'd think to
use this:
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=\db\db2.mdb" />

but server response me so:
ArgumentException: key word 'provider' not supported

and I'm finding no info about use *.mdb file...

Where I can find some info about?

Thanks
Gianluca

Jul 21 '05 #2
What kind of Connection object are you using? You need to use a
OLEDBConnection (and not a SQLConnection) object.

--

HTH

Éric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
"Gianluca_Venezia" <te************@yahoo.it> wrote in message
news:58**************************@posting.google.c om...
Hi all,
I'm approaching at .Net for make up a site but I have a problem with
web.config. I'm trying to use an *.mdb file as db, and I'd think to
use this:
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=\db\db2.mdb" />

but server response me so:
ArgumentException: key word 'provider' not supported

and I'm finding no info about use *.mdb file...

Where I can find some info about?

Thanks
Gianluca

Jul 21 '05 #3
On 7 Nov 2004 15:18:26 -0800, Gianluca_Venezia wrote:
Hi all,
<add key="ConnectionString" value="Provider=Microsoft.Jet.OLEDB.4.0;
Data Source=\db\db2.mdb" />


Check this link:

www.connectionstrings.com
--
Chris

dunawayc[AT]sbcglobal_lunchmeat_[DOT]net

To send me an E-mail, remove the "[", "]", underscores ,lunchmeat, and
replace certain words in my E-Mail address.
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: TPSreport | last post by:
I log on to the cookieless application, work within it for awhile, jump to a URL outside the application, then return to the application. As soon as a db call is required, I get the error below. ...
4
by: Shapper | last post by:
Hello, I have this connectionString in a DataReader: Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0; Ole DB Services=-4; Data Source=C:\db.mdb" It's working fine. Now i...
17
by: Adam | last post by:
I have a small application that uses oledb to connect to a database, set up through the GUI wizards in vis studio. I am wanting to have the database location kept in an .ini file along with the...
4
by: Didymus | last post by:
Hi everyone, How would I adjust the following ConnectionString to point to the applications installed path? === Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data Source=SOME...
3
by: patang | last post by:
In my VB.Net project when I access an Access database without setting any password, everything works fine. However, when I set the password and use this connectionstring ...
8
by: Ben R. | last post by:
Hi all, This is a multipart question. I’ve got an asp.net site that contains an access database. Previously, I would debug by making changes and uploading to my host. Now, I’d like to be...
1
by: Job Lot | last post by:
Creating a new typed dataset using the Data Source Configuration Wizard (and opting NOT to save the password with user settings) generates a ConnectionString setting like... ...
1
by: TeeCo | last post by:
Hi folks. I'm trying to change the location of the Access mdb file I connect to using OleDb and am having trouble. I'm using Visual C# 2005 and the default values I use for the ConnectionString...
3
by: Andre Rode | last post by:
Hi, a question I use a mdb database for my application. The application should be able to handle more than one mdb, so I think I have to change my.settings.ConString (this is my...
4
by: MulderM | last post by:
I have made an DAP (Data Acces Page) and want to link my .mdb file to a webserver. For instance http://www.blabla.nl But I can't get it to work. Please cab someone help me with this ? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.