Re: problem connecting to ADO programmatically
- From: "Chris.Cheney" <Chris.CheneyXXNOSPAMXX@xxxxxxxxx>
- Date: 27 Apr 2008 14:05:41 -0700
"William Meyer" <meyer.wil@xxxxxxxxx> wrote in news:4814d709$1
@newsgroups.borland.com:
Chris.Cheney wrote:
However, I still think it is worth using a simpler connection string!
Trouble again....
The original string, from the wizard, is:
'Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data
Source=I:\Development\CAP\CapWatch\CAPWATCH 24 MAY 07.MDB;Mode=Share
Deny None;Extended Properties="";Jet OLEDB:System database="";Jet
OLEDB:Registry Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine
Type=4;Jet OLEDB:Database Locking Mode=0;Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet OLEDB:New Database
Password="";Jet OLEDB:Create System Database=False;Jet OLEDB:Encrypt
Database=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet
OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False'
I am placing this string into ConnectString, on the fly:
'Provider=Microsoft.Jet.OLEDB.4.0;DataSource=I:\Development\CAP\CapWatch
\CAPWATCH 24 MAY 07.MDB;User ID=admin;Password=""'
Note two things: I observed that the last parameter in the list from
the wizard does not end with a semicolon, so eliminated that, though it
appears to make no real difference to the problem. Second, apart from
the specific filename and path, this is the same as the set of strings
you suggested.
And now I am back to the original error message. This issue of the
ConnectString appears to me to be a point of considerable fragility....
FWIW I can reproduce your problem with the identical error message.
It seems somehow to be associated with "reuse" of the TAdoConnection
component. Try freeing it and recreating it before putting in the new
connect string.
Chris
.
- Follow-Ups:
- Re: problem connecting to ADO programmatically
- From: William Meyer
- Re: problem connecting to ADO programmatically
- References:
- problem connecting to ADO programmatically
- From: William Meyer
- Re: problem connecting to ADO programmatically
- From: Chris.Cheney
- Re: problem connecting to ADO programmatically
- From: William Meyer
- Re: problem connecting to ADO programmatically
- From: Chris.Cheney
- Re: problem connecting to ADO programmatically
- From: William Meyer
- Re: problem connecting to ADO programmatically
- From: Chris.Cheney
- Re: problem connecting to ADO programmatically
- From: William Meyer
- problem connecting to ADO programmatically
- Prev by Date: Re: problem connecting to ADO programmatically
- Next by Date: Re: problem connecting to ADO programmatically
- Previous by thread: Re: problem connecting to ADO programmatically
- Next by thread: Re: problem connecting to ADO programmatically
- Index(es):
Relevant Pages
|