rozrabiak (br**@maila.pl) writes:
How can I get percent of executed procedure in MSSQL Server, lik in
Enterprise Manager and/or dbMgr2k ?
That is very difficult to achieve. Of course, if your doing some iterative
processing, and first count the number of rows you are to process, then
it is not that difficult:
RAISERROR('Processing row %d of a total of %d rows', 0, 1, @row, @tot)
WITH NOWAIT
WITH NOWAIT prevents the message from being buffered.
But normally you should endulge in iterative processing, but use
set-based logic since in very most cases this gives superiour performance.
But in this case there is not away to wrestle progress information from
SQL Server.
--
Erland Sommarskog, SQL Server MVP,
so****@algonet.se
Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp