Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

Performance issue

$
0
0

Dear all,

If I need to insert thousands of records to sql server.e.g

For i as integer = 1 to gridview.count -1

    Open sql server connection

     Call AddRecord Stored procedure

    Close sql server connection

Next

It seems the resource of sql server is dramatically increased by using this approach, any other method is better?


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>