473,387 Members | 1,465 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,387 software developers and data experts.

Error opening database

I've developed a test application on my PC that uses the JET Engine. The
connection string is very basic and is constructed as follows:
connectionString = String.Format("Provider=Microsoft.Jet.OLEDB.4.0;Da ta
Source='{0}'", modelName);

On the development PC, this works fine. On a test PC, I get a message:
The format of the initialisation string does not conform to
specification starting at index 33

Since the same string works on the development PC, I'm taking this to mean
that there are missing drivers on the target PC. I thought I could sort this
by installing MDAC 2.8, but when I went to the downloads site, it explicitly
says that JET and OLEDB aren't included.

What do I need to get installed to be able to open my database? Or am I
wrong and there is a format error?

Thanks
Steve
Sep 30 '06 #1
4 1452
Hello Steve,

try to download previous version of MDAC.
They remove old drives from one of 2.x version

SBI've developed a test application on my PC that uses the JET Engine.
SBThe
SBconnection string is very basic and is constructed as follows:
SBconnectionString =
SBString.Format("Provider=Microsoft.Jet.OLEDB.4.0; Data
SBSource='{0}'", modelName);
SBOn the development PC, this works fine. On a test PC, I get a
SBmessage:
SBThe format of the initialisation string does not conform to
SBspecification starting at index 33
SBSince the same string works on the development PC, I'm taking this
SBto mean that there are missing drivers on the target PC. I thought I
SBcould sort this by installing MDAC 2.8, but when I went to the
SBdownloads site, it explicitly says that JET and OLEDB aren't
SBincluded.
SB>
SBWhat do I need to get installed to be able to open my database? Or
SBam I wrong and there is a format error?
SB>
SBThanks
SBSteve
---
WBR,
Michael Nemtsev :: blog: http://spaces.live.com/laflour

"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche
Sep 30 '06 #2
Hi Steve,

I'm not sure if this is applicable, but there seems to be a bug regarding
'' in connection strings.

http://support.microsoft.com/kb/823679/

If you are using .net 1.1 and have installed the service pack, it might be
worth checking if the target machine is patched as well.
--
Happy Coding!
Morten Wennevik [C# MVP]
Oct 2 '06 #3
Thanks, but it's .Net 2 (sorry, should have said that up front). I think
I'll need to knock up a test program to see exactly what the connection
string is. From what I've read, there is nothing I need to install to get
ADO.Net and the OLEDB drivers other than the framework itself, so it has to
be a format problem caused by the location of the database.

This is my first database app using any variant of ADO, so connection
strings are a foreign language to me. The "good old days" of DAO are much
more my experience, where you never had such problems!

Thanks
Steve
"Morten Wennevik" <Mo************@hotmail.comwrote in message
news:op***************@tr024.bouvet.no...
Hi Steve,

I'm not sure if this is applicable, but there seems to be a bug regarding
'' in connection strings.

http://support.microsoft.com/kb/823679/

If you are using .net 1.1 and have installed the service pack, it might be
worth checking if the target machine is patched as well.
--
Happy Coding!
Morten Wennevik [C# MVP]

Oct 2 '06 #4
Actually, you were closer than I thought. The damn user had put the file in
a folder with a single quote in the path. That's the last time I throw
together a WIP demo of an app!

Thanks
Steve

"Steve Barnett" <no****@nodomain.comwrote in message
news:Oh*************@TK2MSFTNGP06.phx.gbl...
Thanks, but it's .Net 2 (sorry, should have said that up front). I think
I'll need to knock up a test program to see exactly what the connection
string is. From what I've read, there is nothing I need to install to get
ADO.Net and the OLEDB drivers other than the framework itself, so it has
to be a format problem caused by the location of the database.

This is my first database app using any variant of ADO, so connection
strings are a foreign language to me. The "good old days" of DAO are much
more my experience, where you never had such problems!

Thanks
Steve
"Morten Wennevik" <Mo************@hotmail.comwrote in message
news:op***************@tr024.bouvet.no...
>Hi Steve,

I'm not sure if this is applicable, but there seems to be a bug regarding
'' in connection strings.

http://support.microsoft.com/kb/823679/

If you are using .net 1.1 and have installed the service pack, it might
be worth checking if the target machine is patched as well.
--
Happy Coding!
Morten Wennevik [C# MVP]


Oct 2 '06 #5

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

Similar topics

13
by: deko | last post by:
I use this convention frequently: Exit_Here: Exit Sub HandleErr: Select Case Err.Number Case 3163 Resume Next Case 3376 Resume Next
2
by: Julia Baresch | last post by:
Hi everyone, As some of you may know, we've been having trouble with an unrecognized database format error. Today I installed an unfinished project on the workstation of one of my users. ...
1
by: Jeff | last post by:
Hi I am getting an error when using this simple bit of code - Set objFileSys = CreateObject("Scripting.FileSystemObject") This is happening on only one of several computers all running the...
3
by: Giuseppe D'Elia | last post by:
Hi there, I got a problem using an MS Access database through ASP.NET. After updating my system from .NET Framework 1.0 to 1.1, my existing application gives me the following error when...
3
by: Jerry Spence1 | last post by:
I am starting up a number of threads. Each one specifies a connection to the same database. Sub ReaderThread() Dim cn As New System.Data.OleDb.OleDbConnection cn.ConnectionString =...
3
by: frenchy | last post by:
I am getting this error in Adobe after struggling with a 'submit' button on an acrobat form that is in production and all the other appdev people in the office are NOT having a problem with. It...
1
by: amindi | last post by:
Hi, I wrote a VB6 program to read some data records from a Ms Access database and to write them into a SQL server database.(I use Ms Access 2000 and SQL server 2000).After reading each record in...
0
by: fniles | last post by:
I am using VB.Net 2003 and MS Access database. Sometimes when I open the database, I got the error "Unspecified error" The application validate users, when it validates users, it reads from a...
10
by: Phil Latio | last post by:
I am inserting data into user table which contains 5 fields, sounds simple enough normally but 2 of the fields are designated as UNIQUE. If someone does enter a value which already exists, how do I...
2
by: LeoK | last post by:
After finally completing my database I was ready to transfer it to our client, but when the access database was opened, everything works great, except for the SEND_EMAIL part, whenever any code that...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.