June 23, 2011 at 1:21 pm
Sometimes in SSMS when I execute the below command I get the DDL command output in the result window. Any ideas what is causing this?
IF EXISTS (SELECT 1 FROM sys.views where name = 'XXX')
BEGIN
PRINT N'Dropping View XXX';
DROP VIEW XXX;
END
The above DROP VIEW XXX is output in the result tab in SSMS. I have also seen this output when the command is executed in SQLCMD as a script.
Thanks for the help.
June 23, 2011 at 2:32 pm
Forget it. We found it. It was a Database trigger with a select the text of the command.
Thanks to all who looked at my question & thought about what might be causing it.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy