473,324 Members | 2,248 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,324 software developers and data experts.

OLE DB initialization string

Hello -

I'm using VB .Net 2003 connected to Access 2002 via the OLE DB Jet Engine
driver. When I open the connection in the Server Explorer, it works fine.
But when I build the app I get this error:

"Format of the initialization string does not conform to the OLE DB
specification" from the Microsoft OLE DB Service Components.

I can't find anything about what is causing this error. The Data Connection
has very few options, and this is not obvious.

Thanks for your assistance.

Mark


Nov 20 '05 #1
5 3699
Cor
Hi Mark,

Some links with all kind of connection strings.

http://www.connectionstrings.com/

http://www.able-consulting.com/ADO_Conn.htm

I hope this helps a little bit?

Cor
I'm using VB .Net 2003 connected to Access 2002 via the OLE DB Jet Engine
driver. When I open the connection in the Server Explorer, it works fine.
But when I build the app I get this error:

"Format of the initialization string does not conform to the OLE DB
specification" from the Microsoft OLE DB Service Components.

I can't find anything about what is causing this error. The Data Connection has very few options, and this is not obvious.

Thanks for your assistance.


Nov 20 '05 #2
* "Mark" <ma*****@hotmail.com> scripsit:
I'm using VB .Net 2003 connected to Access 2002 via the OLE DB Jet Engine
driver. When I open the connection in the Server Explorer, it works fine.
But when I build the app I get this error:

"Format of the initialization string does not conform to the OLE DB
specification" from the Microsoft OLE DB Service Components.

I can't find anything about what is causing this error. The Data Connection
has very few options, and this is not obvious.


What's your connection string?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
Hi Cor -

Is the connection string the same as the initialization string? I'm not
sure if they are the same.

Thanks for the links.

"Cor" <no*@non.com> wrote in message
news:OP**************@TK2MSFTNGP09.phx.gbl...
Hi Mark,

Some links with all kind of connection strings.

http://www.connectionstrings.com/

http://www.able-consulting.com/ADO_Conn.htm

I hope this helps a little bit?

Cor
I'm using VB .Net 2003 connected to Access 2002 via the OLE DB Jet Engine driver. When I open the connection in the Server Explorer, it works fine. But when I build the app I get this error:

"Format of the initialization string does not conform to the OLE DB
specification" from the Microsoft OLE DB Service Components.

I can't find anything about what is causing this error. The Data

Connection
has very few options, and this is not obvious.

Thanks for your assistance.


Nov 20 '05 #4
Cor
Hi Mark,

This I did copy from something in MSDE

[oledb]
Everything after this line is an OLE DB initstring
Provider=SQLOLEDB.1;Persist Security Info=False;Data
Source=a-iresmi2000;Initial Catalog=Northwind;Integrated Security=SSPI

And that is what I call a connection string.

Cor

Is the connection string the same as the initialization string? I'm not
sure if they are the same.

Nov 20 '05 #5
Good question! I'm not settnig a value myself. The Form appears to set all
those values itself based on the Data Connection I defined - and it has no
option for the connection string, although it says it can connect
successfully.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:bp*************@ID-208219.news.uni-berlin.de...
* "Mark" <ma*****@hotmail.com> scripsit:
I'm using VB .Net 2003 connected to Access 2002 via the OLE DB Jet Engine driver. When I open the connection in the Server Explorer, it works fine. But when I build the app I get this error:

"Format of the initialization string does not conform to the OLE DB
specification" from the Microsoft OLE DB Service Components.

I can't find anything about what is causing this error. The Data Connection has very few options, and this is not obvious.


What's your connection string?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #6

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

Similar topics

19
by: JustSomeGuy | last post by:
I have a class that has a static member variable. string x; x should never change during use and should be intialized to "abcd". How does one do this?
10
by: JKop | last post by:
What's the difference between them? Take the following: #include <iostream> struct Blah { int k;
8
by: Baloff | last post by:
Hello I am not sure why my compiler will not initialize string e1("sam"); and will initialize string e1 = "sam"; here is my code and the error. thanks alot
4
by: Anton Pervukhin | last post by:
Hi everybody! I have a small problem regarding the initialization of pointer to the file stream under some conditions. Imagine a class which has a pointer to output file stream and some...
4
by: Jacek Dziedzic | last post by:
Hello! Suppose I have a class Foo that defines a default c'tor that initializes some data using an initialization list: Foo::Foo() : member1(0), member2(0), member3(NULL), member4(20) // and...
5
by: Randy | last post by:
Hi, When a class contains another class as a member variable, e.g., class ClassA { int a; public :
10
by: utab | last post by:
Dear all, Can somebody direct me to some resources on the subject or explain the details in brief? I checked the FAQ but could not find or maybe missed. Regards,
17
by: prakashraovaddina | last post by:
Hi ppl, can some one say if the following pointer initialization is legal or no. int *intPtr = 5; While debugging i still see that the pointer is given some address. However, the...
3
by: subramanian100in | last post by:
Consider the following program: #include <iostream> #include <string> using namespace std; class Test { public:
4
by: subramanian100in | last post by:
Consider the following program: #include <iostream> #include <string> using namespace std; class Test { public:
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.