Re: TAdoStoredProc
I have never used stored procedures before but I will be interfacing to a
sql server database and was wondering if there were a couple of examples out
there that I might use as a template, both using parameters and result sets.
My recommendation is do not use a TAdoStoredProc.
It is an older style dataset component intended to be property compatible with
BDE components.
Use a TadoDataset if your stored procedure returns a recordset.
Use a TadoCommand if your stored procedure does not return a Recordset.
If your stored procedure returns a value @Return_Value will be the first
parameter in your parameter list. Any input parameters will follow.
The easiest way to find out what your parameters are is to open the parameters
of your component in design mode.
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
Relevant Pages
- Re: using Command to set Parameters and Recordset to retrive the Query
... doesn't the rsData will be interpretate as an input parameter in the SP? ... >> Query and retrive the Recordset so I can use the Paging property ... > Even if this technique of using the parameters in the ORDER BY does work for> you, I suspect that this will defeat your objective of preventing sql> injection. ... See below for a more efficient solution> using a stored procedure. ... (microsoft.public.inetserver.asp.general) - Re: Not Getting results from Stored procedure
... So, running a stored procedure from VB6 can be done fairly easily and while there are fewer whitepapers on how to best do so, I thought my website might still have a few but there are not that many left--the problem is, Microsoft is pulling old unsupported content from MSDN so a lot of those links are gone. ... In any event, when calling a stored procedure, you need to include phrase SET NOCOUNT ON, so that the 'records affected' message that occur from results of Stored proc processing aren't returned to the calling application. ... These messages appear to be returned to the calling application as a recordset. ... when calling a stored proc you need ignore the command object and use a syntactically correct string as the source parameter for the recordset's 'Open' method. ... (microsoft.public.vb.database) - Re: vbscript logon script getting return data from sql sp
... Loop ... > One way to retrieve values from a stored procedure is with a Recordset ... (microsoft.public.scripting.vbscript) - Re: Missing Resultset When Calling an Stored Procedure w/a Nested
... we tried advancing to the next recordset by using the NextRecordSet ... program only returned the nested stored procedure call resultset and failed ... (microsoft.public.data.ado) - Re: Ado Recordset and stored procedure(SQL server 2000)
... I want to fill a recordset using a stored procedure. ... inner join track on images.box = track.box where releasetime between ... (microsoft.public.vb.database.ado) |
|