944,038 Members | Top Members by Rank

Ad:
You are currently viewing page 1 of this multi-page discussion thread
Nov 8th, 2009
0

Delphi 2007 Stored Procedure in SQL 2000

Expand Post »
Hi All,

Im new to the forum so not sure where to post my question, any help would be greatly appreciated.

I have written a program in Delphi 2007 using MS SQL connection, My program runs fine on the development system but as soon as I put it on a fresh XP machine it willl connect to the DB fine and run but will not run my stored procedure unless I have Delphi 2007 installed and have run it at least once. I have tried loading registry settings for boland but no luck.

Has anyone had this problem before?

Thanks in advance Rodney
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
princeknz is offline Offline
7 posts
since Nov 2009
Nov 10th, 2009
0
Re: Delphi 2007 Stored Procedure in SQL 2000
How do you connect to the DB?

Where does those procedure live (trigger asociated to a table, on the DB itself, on the delphi code...)?

I would take a little more info to solve, but looks strange anyhow (MS Office component uses to behave strange some times BTW).
Reputation Points: 12
Solved Threads: 5
Junior Poster in Training
BitFarmer is offline Offline
51 posts
since Nov 2009
Nov 10th, 2009
0
Re: Delphi 2007 Stored Procedure in SQL 2000
Click to Expand / Collapse  Quote originally posted by BitFarmer ...
How do you connect to the DB?

Where does those procedure live (trigger asociated to a table, on the DB itself, on the delphi code...)?

I would take a little more info to solve, but looks strange anyhow (MS Office component uses to behave strange some times BTW).
Thanks in advance,
I have a TSQLConnection on my form using a TSimpleDataSet with a dataset of CommandType CTStoredProc sending 1 param to a stored proceudre I" have created on my MSSQL 2000 server which is local. Ive included all the BPL files going by the list of required packages and still no luck.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
princeknz is offline Offline
7 posts
since Nov 2009
Nov 11th, 2009
0
Re: Delphi 2007 Stored Procedure in SQL 2000
Boy, I can't imagine why delphi is needed... some components only run when delphi is on until you register, but it doesn't sound like you are using them, but check this, may be some other components you are using are in "test mode" and need delphi IDE to be present.

It is usually checked (that delphi IDE is present) with

IF (FindWindow('TAppBuilder', nil)>0) THEN...

...try searching 'TAPPBUILDER' in your code, but also it can be in a .dcu of some component in "test-mode" as i told you.
Reputation Points: 12
Solved Threads: 5
Junior Poster in Training
BitFarmer is offline Offline
51 posts
since Nov 2009
Nov 11th, 2009
0
Re: Delphi 2007 Stored Procedure in SQL 2000
Click to Expand / Collapse  Quote originally posted by BitFarmer ...
Boy, I can't imagine why delphi is needed... some components only run when delphi is on until you register, but it doesn't sound like you are using them, but check this, may be some other components you are using are in "test mode" and need delphi IDE to be present.

It is usually checked (that delphi IDE is present) with

IF (FindWindow('TAppBuilder', nil)>0) THEN...

...try searching 'TAPPBUILDER' in your code, but also it can be in a .dcu of some component in "test-mode" as i told you.
Thanks BitFarmer it is very strange, I could not find TAppBuilder in my code anywhere, testing my program all database access works fine except when it calls a stored procedure. below is the list of bpl files it showed a being required and have been included:

adort100.bpl
bdert100.bpl
dbexpress4100.bpl
dbrtl100.bpl
dbxcds4100.bpl
dbxclientdriver100.bpl
dbxcommondriver100.bpl
dbxdynalinkdriver100.bpl
DbxReadOnlyMetaData100.bpl
dssnap100.bpl
rave75vcl100bpl
rtl100.bpl
vcl100.bpl
vcldb100.bpl
vcljpg100.bpl
vclx100.bpl

also I had to include the following DLL files just to get the program running:

dbxmss30.dll
midas.dll

The fact that I only need to run the development environment and then close it down to get the program running my stored procedures make me think it is a bpl or DLL file I have missed but for the life of me I have no idea which one since I dont get any errors.

All help greatly appreciated
Reputation Points: 10
Solved Threads: 0
Newbie Poster
princeknz is offline Offline
7 posts
since Nov 2009
Nov 11th, 2009
0
Re: Delphi 2007 Stored Procedure in SQL 2000
Ops! midas.dll could be the problem, it comes with delphi as a try-out component, you should need to check it and, if neccesary, use another component for the stored procedure.

Anyhow, with a SQL comoponet, you can also execute your procedure, just make sql.text:= 'execute procedure MyProcedure' and execute your query as if it where another thing!
Reputation Points: 12
Solved Threads: 5
Junior Poster in Training
BitFarmer is offline Offline
51 posts
since Nov 2009
Nov 11th, 2009
0
Re: Delphi 2007 Stored Procedure in SQL 2000
Thanks will try the install without the midas.dll, did try another component for the call to stored proc with the same result but will give it another go .

cheers
Reputation Points: 10
Solved Threads: 0
Newbie Poster
princeknz is offline Offline
7 posts
since Nov 2009
Nov 11th, 2009
0
Re: Delphi 2007 Stored Procedure in SQL 2000
Program will not even start without the midas.dll as part of the install package
Reputation Points: 10
Solved Threads: 0
Newbie Poster
princeknz is offline Offline
7 posts
since Nov 2009
Nov 12th, 2009
0
Re: Delphi 2007 Stored Procedure in SQL 2000
So thew components you use to connect to SQL server are not purchased, are in test-mode, and you need to move to another components to connect to the database.

I can't help you in that, I don't connect to databases except FireBird, and, in that case, use my own components (based on the old FreeIB components).
Reputation Points: 12
Solved Threads: 5
Junior Poster in Training
BitFarmer is offline Offline
51 posts
since Nov 2009
Nov 12th, 2009
-1
Re: Delphi 2007 Stored Procedure in SQL 2000
Thanks anyway, Ill keep working on it. Much appreciated
Reputation Points: 10
Solved Threads: 0
Newbie Poster
princeknz is offline Offline
7 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Problem with GetAdaptersInfo
Next Thread in Pascal and Delphi Forum Timeline: Open a Form within a Form





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC