August 31, 2008 at 10:12 pm
CREATE PROC GO @GO int=NULL AS SELECT @GO
GO
GO;
GO 3
GO
EXECUTE('GO 1')
GO 3
GO
DROP PROC GO
GO
can anybody explain it line by line ....how it get executed ?
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
August 31, 2008 at 10:40 pm
This was already explained in the discussion attached to this question. Please go there.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
September 1, 2008 at 7:43 pm
Heh... yeah... GO for it! 😛
No explanation should be necessary... try executing parts of it yourself... lookup GO in Books Online to see what its correct and only format is. Is GO; a GO command or the name of a stored procedure? Figure it out...
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply