 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
HotRod40 Guest
|
Posted: Wed May 26, 2004 1:05 pm Post subject: Stored Procedure Calling |
|
|
Hi,
Could anyone show or describe how to call and execute a SQL Server 2000
stored procedure in Delphi 5 Prof. that using the TStoredProc component in
D5. I dont have ADO as it doesnt come with D5 as standard.
Any help or suggestions would be appreciated.
Scott
|
|
| Back to top |
|
 |
Brian Hollister Guest
|
Posted: Wed May 26, 2004 1:37 pm Post subject: Re: Stored Procedure Calling |
|
|
"HotRod40" <scott_topley (AT) hotmail (DOT) com> wrote
| Quote: | Hi,
Could anyone show or describe how to call and execute a SQL Server 2000
stored procedure in Delphi 5 Prof. that using the TStoredProc component in
D5. I dont have ADO as it doesnt come with D5 as standard.
Any help or suggestions would be appreciated.
Scott
|
Goto the help files and on the Index tab, search for TStoredProc.
At the top of the help file click Methods, look for ExecProc. It has an
example right there.
hth,
b
|
|
| Back to top |
|
 |
Jeremy Collins Guest
|
Posted: Wed May 26, 2004 4:09 pm Post subject: Re: Stored Procedure Calling |
|
|
HotRod40 wrote:
| Quote: | Hi,
Could anyone show or describe how to call and execute a SQL Server 2000
stored procedure in Delphi 5 Prof. that using the TStoredProc component in
D5. I dont have ADO as it doesnt come with D5 as standard.
Any help or suggestions would be appreciated.
|
All computers have ADO (if you install it). In Delphi, go
to Project | Import Type Library and import the MS ActiveX
Data Objects 2.x Library.
You'll have a file called "ADODB_TLB.PAS". You can now create
Connection and Command objects and execute your stored
procedure.
I can provide an example if you want to go this route.
--
jc
Remove the -not from email
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|