Please chack the following links:
http://social.msdn.microsoft.com/Forums/en/sqltools/thread/bac7ecee-a156-4313-b532-ba15813a0700
http://relatedterms.com/ViewThread.aspx?t=1628286
If this does not adress y9our problem I would sugesst that y9ou google and I;m sure that you will find a solution to your problem.
Regards,
Welsh
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/