• If you are using "results to text" the output will be between the 3rd and 4th "(1 row(s) affected)" .

    I'm adding a SET NOCOUNT ON to the top of the script in order to turn off the extra output.

    You probably arn't getting any results. If you switch to "results to grid" you will get your results seperate from the text output.

    Kenneth

    Kenneth FisherI was once offered a wizards hat but it got in the way of my dunce cap.--------------------------------------------------------------------------------For better, quicker answers on T-SQL questions, click on the following... http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]For better answers on performance questions, click on the following... http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]Link to my Blog Post --> www.SQLStudies.com[/url]