I am running a t-sql script which makes a bunch of calls to stored
procedures, updates few tables and inserts records. I do this in Begin
Tran and commit. The problem I am having is that SQL Server hogs 100%
of cpu. This degrades the performance of other applications obviously.
The memory it uses remains flat at about less than half of total
memory. Is there any optimization required? Or if there is any script
to be run on SQL Server before running the t-sql script? Any help
appreciated.
Environment details:
OS: Windows 2000
SQL Server version: 2000
Memory: 1 GB
CPU: Intel P4 2.00 GHz
Thanks.