Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling SQL Server sProc -> which object?
Message
General information
Forum:
ASP.NET
Category:
ADO.NET
Miscellaneous
Thread ID:
00585160
Message ID:
00585234
Views:
23
Thanks Eric. Why am I not surprised to see you in this forum as well ? <s>



>>Hey all. I am building an application with various middle layer components written in VB, which then return data to ASP pages. For the most part, these middle layer components call SQL Server sprocs.
>>
>>I know that stored procedure calls can be made via a recordset object's Open() method, a connection object's execute() method, or a command object's execute() method. But what is the best way to go? I started off assuming that I would use a command object, but none of the stored procedures return output parameters. This makes me wonder why I should incur the overhead of instantiating the command object, just to return the value into a recordset object... rather than call a recordset object's OPEN directly. PERFORMANCE is my main concern - so, I would like to just use the recordset object, unless I hear that calling an sproc through the command object is quicker than calling one through the recordset object. Remember, I do not need the advanced features of the command object.
>
>Because you have said that your SPs doesn't have output params, there is no reason to use the Command object. The Open method of the Recordset or the Connection object is enough and won't cost you performance.
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Reply
Map
View

Click here to load this message in the networking platform