Re: Reinstall Microsoft Jet 4.0
- From: Bill <w2m00@xxxxxxxxxxxxxxxxx>
- Date: Thu, 26 Oct 2006 15:16:02 -0400
Thanks for your speedy reply C P,
I would guess that the issue is probably Jet settings and/or connection string settings rather than Jet being corrupted.
I emailed the source code and the database demo application to Salabium.
He recompiled it without changing anything and the export worked on his pc.
I connect the database as follows:
procedure TfrmMain.FormCreate(Sender: TObject);
var
ADOConnSource: widestring;
DBPath: string;
ExportDBPath: string;
begin
DBPath := ExtractFilePath( Application.ExeName ) + 'code.mdb';
ExportDBPath := ExtractFilePath( Application.ExeName ) + 'export.mdb';
ADOConnSource := 'Provider=Microsoft.Jet.OLEDB.4.0;' +
'User ID=Admin;Data Source=' +
DBPath +
';Mode=Share Deny None;' +
'Persist Security Info=False;';
ADOTable1.ConnectionString := ADOConnSource;
ADOTable1.Active := True;
StatusBar1.Panels[0].Text := MinimizeName( DBPath, Canvas, 250 );
StatusBar1.Panels[1].Text := MinimizeName( ExportDBPath, Canvas, 250 );
end;
update them in a particular order. Is it possible that something like this is your issue, and the reason the component vendor doesn't have the same issue is his table structure/query is different than yours and thus able to avoid the problem?
No, he has same source code and same database.
Looking at your table structure from the BDE newsgroup,
maybe it would work if you modified your table structure to be:
Method: String 255
Description: String 255
Category:: String 255
Comment: String 255
Author: String 255
Code: Memo
I put the Memo field as the last field in the table. Also I think I mentioned before that you didn't have an obvious primary key field for your table. Making sure your table has a primary key field may also help solve the problem. Aside from giving Access better performance, a lack of a Primary Key seems to cause issues in a number of database formats.
I did have it setup with an autonumber field as the first field set as primary key. I have since changed it by removing the autonumber field and had:
Method: String
Code: Memo
Description: String
Category:: String
Comment: String
Author: String
I switched it to your suggestion.
I tried setting the Method as the primary key in Access but it will not permit saving the structure unless Method is not the primary key. This is such a simple database the only other alternative i can see is to add a autonumber field has the first field with it having a primary key.
Thanks for your help.
Bill
.
- References:
- Reinstall Microsoft Jet 4.0
- From: Bill
- Re: Reinstall Microsoft Jet 4.0
- From: C P
- Re: Reinstall Microsoft Jet 4.0
- From: Bill
- Re: Reinstall Microsoft Jet 4.0
- From: C P
- Reinstall Microsoft Jet 4.0
- Prev by Date: Re: Reinstall Microsoft Jet 4.0
- Next by Date: Re: CommandText Editor
- Previous by thread: Re: Reinstall Microsoft Jet 4.0
- Next by thread: Re: Reinstall Microsoft Jet 4.0
- Index(es):
Relevant Pages
|