Performance Issue
Hi,
In my application there are around 180 tables. I have created stored procedure for Insert, Delete, Update, and Retrieve functionality. These procedures have single line statement i.e for insert into table Insert command and all field values as parameters.
Now my query is related to performance. If i use same query using SqlCommand in c#
then which way is efficient performance wise.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Nilanka DharmadasaRank #1,875 · 794 reputationPosted Nov 4, 2009, 8:12 PM EST
As I see, there is no change in efficiency between the tow methods as it's only a simple query. But using stored procedures is good as you have youe query seprately.
Then if you have any modification in the query, you can do that without changing your code or building your project again.
Hope you got my point.
If you need more info, go to this link.
http://searchsqlserver.techtarget.com/news/article/0,289142,sid87_gci1052737,00.html#
If you find my answer useful, please accept my answer.
Thanks.
Nilanka DharmadasaRank #1,875 · 794 reputationPosted Nov 4, 2009, 7:28 PM EST
Your question is not clear for me.
What do you mean by 'same query'?
You have separate procedures for each table or you use same procedure?
VikramRank #9,295 · 208 reputationPosted Nov 4, 2009, 7:40 PM EST