Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 spaceused

Author  Topic 

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2011-10-21 : 06:12:46
I am running a query as below:
begin transaction
insert into devTable select * from Prodtable

How can I find out how far this has gone into the insert?

I run sp_spaceused devTable but the row number seems to reduce each time I run this query.
Thanks

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2011-10-21 : 06:17:16
select count(*) from devTable (nolock)
You can also check the diskio from master..sysprocesses.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

arkiboys
Master Smack Fu Yak Hacker

1433 Posts

Posted - 2011-10-21 : 07:24:07
Thanks
Go to Top of Page
   

- Advertisement -