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 procedures

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Ryan Schoolman
Guest





PostPosted: Fri Dec 05, 2003 4:47 am    Post subject: stored procedures Reply with quote



Is there a way to reference a stored procedure in a cmdText string?

--
Ryan Schoolman - Programmer & Application Architect
[email]ryan (AT) pclegends (DOT) com[/email]

PC Legends
http://www.pclegends.com

[w] 715.839.6855
[c] 715.379.0878
[h] 715.855.9003


Back to top
Henrik
Guest





PostPosted: Fri Dec 05, 2003 6:40 am    Post subject: Re: stored procedures Reply with quote



Yes.

cmdCommand.CommandText := 'sp_sampleProcedure';

There are two ways of calling a stored procedure with parameters, either you
pack the parameters in the CommandText (not a good solution) or you create
parameter objects and append them to cmdCommand.Parameters.

I hope that helps you,

regards,

henrik

"Ryan Schoolman" <ryan (AT) pclegends (DOT) com> schrieb im Newsbeitrag
news:3fd00dc4$1 (AT) newsgroups (DOT) borland.com...
Quote:
Is there a way to reference a stored procedure in a cmdText string?

--
Ryan Schoolman - Programmer & Application Architect
[email]ryan (AT) pclegends (DOT) com[/email]

PC Legends
http://www.pclegends.com

[w] 715.839.6855
[c] 715.379.0878
[h] 715.855.9003





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) 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.