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 2000 Forums
 SQL Server Development (2000)
 Pulling information about SQL Server status...

Author  Topic 

CompiledMonkey
Starting Member

3 Posts

Posted - 2004-04-25 : 11:55:14
I'm looking to pull information such as uptime, ip, status, db name, etc from my sql server database to display on a form. I'd like to get more detailed if I could, such as current load on database, threads, etc. Does anyone know if this is possible using C#?

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-04-25 : 14:31:34
I'd like to get more detailed if I could, such as current load on database, threads, etc.

Can you explain this in more detail?

You can pull any information you want from the SQL Server using C#. My suggestion would be to set up some Profiler and Performance Monitor traces that give you what you are looking for and write it to tables in the database for historical purposes. You can then use stored procedures to sum the information up and present it to your application.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -