question

dba avatar image
dba asked

count transaction in SQL Server 2000

Expert,

I wonder where I can check those questions for SQL Server 2000?

  1. How many transaction in each day for SQL server 2000?

  2. How many transactions in peek hours?

  3. How many transactions per second?

  4. should I use perfmon tool to check those, is any where build in the tool in SQL Server sytem?

Thank you,

Learner

sql-server-2000
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Kristen avatar image
Kristen answered

In addition to SQL Profiler you can also query sysperfinfo

SELECT * FROM master.dbo.sysperfinfo

We do this in a scheduled task (runs once a minute) to log the counters we are interested in. In particular we monitor

SQLServer:Databases / Transactions/sec            
SQLServer:General Statistics / User Connections            

we also log / monitor

@@cpu_busy            

If CPU, or Transactions, or User connections is over a preset threshold we show the Server Busy page on our website (for new sessions only) - which prevents new sessions whilst allowing existing sessions to finish-up and leave - the intention being that people already in the site can finish their tasks, rather than everybody being chucked off, or exterpencing timeout errors, etc.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Peso avatar image
Peso answered

You will have to monitor the database with SQL Profiler, or do a server side trace.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.