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
Title:
Calling SQL Server sProc -> which object?
Miscellaneous
Thread ID:
00585160
Message ID:
00585160
Views:
66
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.

Thanks in advance!
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
Next
Reply
Map
View

Click here to load this message in the networking platform