Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
sql_server 217
t-sql 211
tsql 116
sqlserver 96
BRH 78
#SQLServer 66
#TSQL 56
SQL Server 34
function 11
SSMS 9

Archive · View All
August 2007 17
August 2010 8
June 2012 7
June 2011 7
November 2007 7
August 2012 6
May 2012 6
November 2011 6
August 2011 6
October 2011 6

Madhivanan's TSQL Blog

Fun with GO

Sep 5 2008 10:01AM by Madhivanan   


In this blog post, I explained different uses of GO command

Here is a Fun when you use GO as object name
CREATE PROCEDURE GO
(
    @I INT
)
AS
    SELECT @I AS number

Well. The procedure is created and let us try to execute

GO 2

What we see is

Command(s) completed successfully

Becuase it becomes a syntax to execute a batch for two times

EXECUTE GO 2 

Result is 2

Now see what the results are for the following

Execution 1
[GO] 2

--Execution 2
[GO] 2
GO 2

--Execution 3
[GO] 2
GO
EXECUTE GO 2
GO

--Execution 4
[GO] 2
GO 2
GO 2

--Execution 5
[GO] 2
GO
GO

--Execution 6
EXECUTE GO 2
EXECUTE GO 2
GO 2

--Execution 7
[GO] 2
GO
GO 2
GO 2
EXECUTE GO 2
GO
GO 2
GO 2
GO 2 
--Execution 8
GO;

--Execution 9
GO;2

--Execution 10
GO 2;

Tags: t-sql, sql_server, GO,


Madhivanan
3 · 40% · 12862
5
 
0
Lifesaver
 
0
Refreshed
 
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"Fun with GO" rated 5 out of 5 by 5 readers
Fun with GO , 5.0 out of 5 based on 5 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]