azag
asked on
Connection to DB fails, works on dev machine
Im using Delphi 5, CR 9, connecting to a MS SQL Server DB. The application using the Delphi VCL (supplied with CR) to interface to the report. I have a report that is loaded at run time from the Delphi application, then attempts to connect to the DB using OLEDB (ie not ODBC). Works fine on my dev machine, but not the client PC. The client PC gets a "717 - Failed to Load database information".
Some sample code;
oCR.Connect.Clear;
oCR.Connect.ServerName := '100.100.100.1';
oCR.Connect.UserID := 'query';
oCR.Connect.Password := 'queryit';
oCR.Connect.DatabaseName := 'ESCQuery';
oCR.Test <- Fails here.
I've installed all the DLLs I can find, but this is really getting annoying, can anyone help resolve this? Im fairly certain this is a DLL redistribution issue, but after reading seagate's doco on this Im no closer.
Some sample code;
oCR.Connect.Clear;
oCR.Connect.ServerName := '100.100.100.1';
oCR.Connect.UserID := 'query';
oCR.Connect.Password := 'queryit';
oCR.Connect.DatabaseName := 'ESCQuery';
oCR.Test <- Fails here.
I've installed all the DLLs I can find, but this is really getting annoying, can anyone help resolve this? Im fairly certain this is a DLL redistribution issue, but after reading seagate's doco on this Im no closer.
ASKER
I've been using Installshield Pro 7 to create an installation package. Have been registering DLLs where I "believe" appropriate. I must admit to being lost as to which should and which should not be registered.
(Even went to the extent of signifying all DLLs as registerable - and living with failed registrations - just to make sure I registered them all).
Believe that I need crdb_ado.dll (which doesnt regsvr32) - but sure which others.
HTH
(Even went to the extent of signifying all DLLs as registerable - and living with failed registrations - just to make sure I registered them all).
Believe that I need crdb_ado.dll (which doesnt regsvr32) - but sure which others.
HTH
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
Although this hasnt really solved my problem - I kind of ran out of time and used a MSM solution (which I didnt want to do), I thank you for your help. If I get more time - the dependency checker might help in future projects.
Azag
Although this hasnt really solved my problem - I kind of ran out of time and used a MSM solution (which I didnt want to do), I thank you for your help. If I get more time - the dependency checker might help in future projects.
Azag
Hope it helps
mlmcc
mlmcc
Did you create an installation package or just copy the dlls to the client?
Are the dlls registered on the client?
mlmcc