Re: Access 2000 with ADOTable error - Unspecified error
- From: "Alan T" <alanNOSPAMpltse@xxxxxxxxxxxx>
- Date: Tue, 15 Jan 2008 13:08:15 +1100
Sorry,
is the table name called 'session' a key word in Delphi?
Actually the table name is called 'session'.
"Alan T" <alanNOSPAMpltse@xxxxxxxxxxxx> wrote in message
news:478c0f0e$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Hi,Active
I found the problem but not the solution:
Now this was what I did:
The table has problem eg. 'employee'.
Make a copy inside MS Access as 'copy of employee',
Rename the original 'employee' as employee_old',
Rename the 'copy of employee' as 'employee'.
Now open the TADOTable again, got the same 'Unspecified error'.
Then TADOTable points to the 'employee_old', open the table component
without problem.
So it seems if the table name is 'employee' will have problem.
"Alan T" <alanNOSPAMpltse@xxxxxxxxxxxx> wrote in message
news:478bedf7$1@xxxxxxxxxxxxxxxxxxxxxxxxx
D7.
Tried to display Access 2000 table.
I used the ConnectionString wizard to build the connection string to a
Access 2000 database for TADOConnection. Test connection is OK.
Then link TADOTable and TADOQuery to this TADOConnection.
Define the SQL and the table name for the components. Then set the
toMode=1;Jet
TRUE of the TADOTable, but got the error 'Unspecified error", it also
happened to the TADOQuery.
The OLE DB Provider I used was:
Microsoft Jet 4.0 OLE DB Provider.
I don't understand why the connection string was so long:
"Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data
Source=C:\database\test.mdb;Mode=ReadWrite;Extended Properties="";Jet
OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database
Password="";Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking
Database=False;JetOLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet
OLEDB:New Database Password="";Jet OLEDB:Create System
Source=C:\database\test.mdb;PersistOLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on
Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet
OLEDB:SFP=False"
I tried to trim down:
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Mode=1;JetSecurity Info=False"
But once I set the Active to TRUE, the TADOConnection connection string
returned back to
"Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data
Source=C:\database\test.mdb;Mode=ReadWrite;Extended Properties="";Jet
OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database
Password="";Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking
Database=False;JetOLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Global Bulk Transactions=1;Jet
OLEDB:New Database Password="";Jet OLEDB:Create System
OLEDB:Encrypt Database=False;Jet OLEDB:Don't Copy Locale on
Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet
OLEDB:SFP=False"
Any idea?
.
- Follow-Ups:
- Re: Access 2000 with ADOTable error - Unspecified error
- From: Andrew Baylis
- Re: Access 2000 with ADOTable error - Unspecified error
- References:
- Access 2000 with ADOTable error - Unspecified error
- From: Alan T
- Re: Access 2000 with ADOTable error - Unspecified error
- From: Alan T
- Access 2000 with ADOTable error - Unspecified error
- Prev by Date: Re: Access 2000 with ADOTable error - Unspecified error
- Next by Date: Re: Access 2000 with ADOTable error - Unspecified error
- Previous by thread: Re: Access 2000 with ADOTable error - Unspecified error
- Next by thread: Re: Access 2000 with ADOTable error - Unspecified error
- Index(es):
Relevant Pages
|
|