What about
PRINT '/*'
USE Whatever
PRINT '*/'
>No I didn't - thanks I will.
>
>One problem I just noticed :
>
>I am running xp_cmdshell from master.
>
>the script does an explicit USE of the Membership database before it gets the list of indexes
>
>The output script, before it gets to the DROP lines created, has a line
>
>Changed database context to 'membership'.
>
>which will, of course, error when I try to run the .SQL script. Is there a way to suppress that line as part of the output ?
>
>
--sb--