isuckatsql
SSChampion
Points: 10381
More actions
December 15, 2011 at 9:37 am
#391138
I am doing a SQL Insert of 2 Million records into my DB, and would like to know how many records have been inserted.
Is it safe to run a SQL Count on the table, while doing a SQL Insert, at the same time?
Thanks
Johan Bijnens
SSC Guru
Points: 135375
December 15, 2011 at 9:47 am
#1422061
if you are counting using e.g;
select count(*) from yourtable with (nolock)
Only in this case you'll get a good approx.
(because the number doesn't have to be exact)
JohanLearn to play, play to learn !
Dont drive faster than your guardian angel can fly ...but keeping both feet on the ground wont get you anywhere :w00t:
- How to post Performance Problems- How to post data/code to get the best help[/url]
- How to prevent a sore throat after hours of presenting ppt
press F1 for solution, press shift+F1 for urgent solution 😀
Need a bit of Powershell? How about this
Who am I ? Sometimes this is me but most of the time this is me
December 15, 2011 at 9:56 am
#1422071
Thanks!
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply