Re: sqldmo

From: Anthony Thomas (ALThomas_at_kc.rr.com)
Date: 02/19/05


Date: Sat, 19 Feb 2005 12:10:50 -0600

I like the idea of using WMI because you can get both OS and SQL Server
performance counters. Also, as a suppliment on the installation medi, there
are special WMI objects tailored to SQL Server specifically, SQLWMI.

However, if you are only interested in SQL Server statistics, consider T-SQL
statments against master.dbo.sysperfinfo, master.dbo.sysprocesses, and
master.dbo.syslockinfo. Also, consider using DBCC INPUTBUFFER and
fn_get_sql.

Sincerely,

Anthony Thomas

-- 
"Dan Guzman" <guzmanda@nospam-online.sbcglobal.net> wrote in message
news:emtnC2RCFHA.208@TK2MSFTNGP12.phx.gbl...
For performance counters, consider WMI queries.  This can be used to get SQL
Server as well as OS metrics.  You'll find a lot of examples with a google
search.
-- 
Hope this helps.
Dan Guzman
SQL Server MVP
"Aju" <ajuonline@yahoo.com> wrote in message
news:uIStYxRCFHA.3336@TK2MSFTNGP11.phx.gbl...
> Thanks for reply guys
> I meant , want to make an application to see how my server is performing
> for
> e.g. buffer cache hit ratio , memory usage , procedure cache hit ratio or
> from OS processor queue length .
>
> Thanks
> ARR
>
> "Mark Allison" <mark@no.tinned.meat.mvps.org> wrote in message
> news:#FjL7sRCFHA.1292@TK2MSFTNGP10.phx.gbl...
>> Aju,
>>
>> I'm not clear what you're trying to do. SQL-DMO is used for managing SQL
>> Server programmatically. i.e. much of Enterprise Manager functionality
>> is available in your front-end code in SQL-DMO.
>>
>> For data storage and retrieval, it is better to use ADO (or even ADO.NET
>> for .NET apps). SQL-DMO is not designed for data storage and retrieval,
>> rather it is used to manage your database servers.
>>
>> What does "making a small application for performance" mean?
>>
>> --
>> Mark Allison, SQL Server MVP
>> http://www.markallison.co.uk
>>
>> Looking for a SQL Server replication book?
>> http://www.nwsu.com/0974973602m.html
>>
>>
>> Aju wrote:
>> > Hi ,
>> > Just for curiosity making a small application for performance . Is it
> good
>> > to use SQL-DMO in the application for better performance of it rather
> than
>> > storing the data in sql database & retriving .
>> >
>> > Thanks
>> > ARR
>> >
>> >
>
>


Relevant Pages

  • Re: WMI is broken
    ... It is WMI that is at fault. ... SQL Server does NOT work ... Microsoft MVP [Windows XP Shell/User] ... Management, I see displayed the following message in the General tab ...
    (microsoft.public.windowsxp.general)
  • Re: WMI is broken
    ... Technical Weblog of Eric Charran: SQL Server 2005 WMI Provider Error: ... Microsoft MVP [Windows XP Shell/User] ...
    (microsoft.public.windowsxp.general)
  • Re: WMI Issues
    ... | SQL Server 2005 Express, while following all of the directions to the letter, ... | executed due to WMI configuration on this machine. ... if not exist %windir%\system32\wbem goto TryInstall ... net start winmgmt ...
    (microsoft.public.windowsxp.security_admin)
  • WMI dont read SQL Server 2005 performance counters
    ... I cannot read SQL Server performance counters using WMI ... (below an example of a script, it works properly on SQL Server 2000 ...
    (microsoft.public.sqlserver)
  • ERROR DURING INSTALLATION OF SQL 2005 ON WINDOWS 2003 R2
    ... SQL Server Setup Failed to compile the Managed Object Format file ... I even went the the extent of stopping the WMI ... service, removing the Repository folder, and restarting the WMI service to ... The failure is during the installation of the database services ...
    (microsoft.public.sqlserver.setup)