Posts

Showing posts from 2011
DECLARE  @Country  VARCHAR ( 20 )  SET  @Country  =  'US'     SELECT  *      FROM  Sales.SalesOrderHeader h ,  Sales.Customer c ,           Sales.SalesTerritory t      WHERE  h.CustomerID  =  c.CustomerID          AND  c.TerritoryID  =  t.TerritoryID          AND  CountryRegionCode  =  @Country     OPTION  ( OPTIMIZE  FOR  ( @Country  =  'US' ))

Clear the procedure cache between runs

Clear the procedure cache between runs you can use the DBCC FREEPROCCACHE command

SQL Server DBA Performance Tuning

Link:  http://www.mssqltips.com/tip.asp?tip=1429

Change Data Capture (CDC) in SQL Server 2008

Link:  http://www.mssqltips.com/tip.asp?tip=1474&ctc