Board index » delphi » help on setting ADO at run time
paolol
Delphi Developer |
help on setting ADO at run time2005-03-01 06:07:22 PM delphi257 Hi, I will like to set the ADO at run time, but I keep getting an error "COInitialize not done "???? this is my code : ADOConnection1.ConnectionString:=sA+sPath+sB+sC; ADOConnection1.Connected:=True; ADOTask.Active:=true; where the sA is the first part of the ado string sPath is the DB path sB and sC are the rest of the connection string : sA:='Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source='; sPath:=sPathDB+'\lnkftps.mdb'; ///******************************************************* sB:=';Mode=Share Deny None;Extended Properties="";Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=5;Jet OLEDB:Database Locking Mode=1;'; sC:='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:Encrypt Database=False;Jet OLEDB:Don'+''''+'t Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica Repair=False;Jet OLEDB:SFP=False'; Thanks for any help :) Paolo L. |