Browse by Tags

All Tags » query » tsql » SQL Server
  • Another Best Practices article: Identifying and Resolving MDX Query Performance Bottlenecks

    Best Practices are good enough to follow, but simply do not read and digest. Try to implement them within your environment to keep up the performance. Similary there are many things involved within the SQL Server 2005 Analysis Services such as MDX queries, data mining etc. For any sort of performance analysis exercise you must identify the ...
    Posted to SQL Server Aggregator (Weblog) by Anonymous on September 5, 2007
  • Triggers within CLR - advantage over TSQL

    You may be aware the DML and DDL triggers can be nested up to 32 levels, because any reference to such trigger code counts as one-level in the nesting limit. Even though it is possible to control whether AFTER triggers can be nested through the nested triggers server configuration option. So how it can be escaped using CLR and how procedural and ...
    Posted to SQL Server Aggregator (Weblog) by Anonymous on September 4, 2007
  • TSQL to detect long running queries against the database

    When I'm performing a performance analysis on a 24/7 application and dealing with PSS I had been given the following TSQL to identify the long running queries against a database. select r.session_id, s.host_name, s.program_name, s.host_process_id, r.status, r.wait_time,wait_type,r.wait_resource, substring(qt.text,(r.statement_start_offset/2) +1, ...
    Posted to SQL Server Aggregator (Weblog) by Anonymous on August 29, 2007
  • TSQL to generate blocking scenario for testing

    Most of the times you have observed to identify the blocking and how to resolve them. How about you need a script to generate a blocking scenario within your queries, this is to identify the blocker script is working or not. Also will help to test whether the alerting tool is working or not. ( I have used Northwin database to stage the scenario ) ...
    Posted to SQL Server Aggregator (Weblog) by Anonymous on July 27, 2007