September 25, 2006 at 2:02 pm
September 25, 2006 at 2:05 pm
Not that I know of. I've never had to use 'em explicitly. But it can be usefull to mark the end of something. Anyone else got a better explaination?
September 26, 2006 at 6:06 am
Hi
This might not be 100% right but as far as I know it go like this.
; The semi colon is the ANSI standard to end a SQL statement and works in MS SQL.
Go This is just in MS SQL and does the same as the semi colon.
BEGIN Are block that you would usually use with and if statement.
END
IF @Count > 1
Begin
--Run some SQL
End
ELSE
BEGIN
--Run something else
END
Mike
September 26, 2006 at 11:23 am
Ken Powers had a decent article abotu the differences of the two back in January...
http://www.sqlservercentral.com/columnists/kpowers/thegocommandandthesemicolonterminator.asp
Hope this helps clear up the difference.
-Luke.
September 27, 2006 at 2:52 am
'go' does quite a bit more than the semi-colon, for example, all variables declared before the go are no longer available after the go
September 27, 2006 at 7:32 am
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply