 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ryan Schoolman Guest
|
Posted: Fri Dec 05, 2003 4:47 am Post subject: stored procedures |
|
|
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
|
Posted: Fri Dec 05, 2003 6:40 am Post subject: Re: stored procedures |
|
|
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 |
|
 |
|
|
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
|
|