473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

APIs for monitoring MS-SQL

hi,
i want to retrive the information from MS SQL such as
o Active transactions
o Average wait time for lock requests
o Logical Scan – bytes/second
o Full Scans/Second
o Lock Blocks
o Lock Timeouts/second
o Log Cache Reads/second
o Log Truncations
o Logins/second
o SQL Agent\Failed SQL Agent Jobs
o SQL Server Backups\Failed SQL Backups
o SQL Server Replication\Merge\Conflicts/second.

i am searching for API for doing the above said function.
can anyone help me.
thanks in advance
Feb 7 '07 #1
1 1263
iburyak
1,017 Expert 512MB
Not sure if API like this exists but you can definitely use system tables to get all necessary information.

Some of which you can pool using query like this:

[PHP]select spid, blocked, loginame,hostname, program_name,a.status,
login_time, last_batch, lastwaittype, b.name db_name, waittime/100 waittime
from master..sysprocesses a
join master..sysdatabases b on a.dbid = b.dbid [/PHP]
Feb 7 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Ron | last post by:
I am trying to run asp.net pages. The server is accessed via http://sitename/username I have verified it is using port 80 and aspx extensions are configured. But when I run and asp.net page I...
2
by: Tanuki | last post by:
Hi All: I am doing some development in VC++ using some llibraries downloaded from the web. The library comes in 3 files <mylib.dll>, <mylib.lib>, <mylib.exp> and I also have <mylib.h>. As...
1
by: cindy liu | last post by:
Hi, I'd like to create xml string based on my xsd file. Is there any .Net APIs to do this? Like in BizTalk 2004, you can generate xml instance based on xsd file. Thanks in advance!!! Cindy
4
by: johnm | last post by:
Hello, We currently are running a CRM application that uses DB/2 7.2 for the data repository. We will be upgrading to 8.2 later this year....maybe....time and resources permitting. The...
8
by: José Achig | last post by:
Hi I have to use functions inside of system apis so I want the correct dllimports declarations in c# for the following functions or information about where I can get these statements. +...
0
by: Jeff Reed | last post by:
I am experiencing the the problem outlined the below. Unfortunately, I am using WinXP and I not sure if I can apply the solution due to lack of security control Any feed back would be apreciated ...
9
by: Tim D | last post by:
Hi, I originally posted this as a reply to a rather old thread in dotnet.framework.general and didn't get any response. I thought it might be more relevant here; anyone got any ideas? My...
0
by: Curtis | last post by:
Does anyone know of any good reference books for using the MS Exchange APIs to integrate a custom application with MS Exchange Server? Thanks Curtis Hunter
1
by: amit.vasu | last post by:
Hi I have created a web serivces using .net framework 2.0. When I try to execute the web service I get the following error. Failed to start monitoring changes to 'e:\Default Web Site' because...
2
by: RSL101 | last post by:
HI, I am hoping to get your opinions about "Tivoli Monitoring for Databases". Our enterprise environment is AIX/Red Hat Linux, running a lot of IBM P series and E servers. We need to monitor LUW...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.