BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stored Procedure Calling

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
HotRod40
Guest





PostPosted: Wed May 26, 2004 1:05 pm    Post subject: Stored Procedure Calling Reply with 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


Back to top
Brian Hollister
Guest





PostPosted: Wed May 26, 2004 1:37 pm    Post subject: Re: Stored Procedure Calling Reply with quote




"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





PostPosted: Wed May 26, 2004 4:09 pm    Post subject: Re: Stored Procedure Calling Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.