which one is faster execute reader, scalar, execute non
query ?
Answer Posted / peter
What is faster:
ExecuteNonQuery("INSERT INTO...; INSERT INTO...; INSERT
INTO");
or
ExecuteNonQuery("INSERT INTO...")
ExecuteNonQuery("INSERT INTO...")
ExecuteNonQuery("INSERT INTO...")
I hope you see my point. Of course it is not a matter of
only three inserts, but maybe 200 - and then I would like
to know if I can save time by adding the INSERT-strings to
one big string and only fire off one ExecuteNonQuery.
I was thinking of coding a test to check, but if some of
you have already done this or just know which is faster,
please let me know.
Thanks
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How should I destroy my objects in asp.net?
How can you identify that the page is post back?
How can you display all validation messages in one control?
What is server transfer?
How do you hide the columns?
What is state management react?
what are the web form events available in asp.net?
Explain the difference between web user control and web custom control?
What is the difference between response.redirect and server.transfer?
What is bson in web api?
Explain about the Class view window?
What is the difference between exe and dll?
What is diff. Between abstract class and an interface?
How can we add an event handler for a ASP.NET function executed on MouseOver for a certain button.
What does the .webpart file do?