Click here to Skip to main content
16,011,542 members
Home / Discussions / Database
   

Database

 
AnswerRe: Restore SQL Server UNC Pin
Colin Angus Mackay10-Sep-06 9:38
Colin Angus Mackay10-Sep-06 9:38 
QuestionConverting JET to SQL Database Pin
Nick C.8-Sep-06 7:44
Nick C.8-Sep-06 7:44 
AnswerRe: Converting JET to SQL Database Pin
Stephen McGuire8-Sep-06 9:06
Stephen McGuire8-Sep-06 9:06 
Questionfew queries in Stored procedures Pin
ParagGupta8-Sep-06 4:57
ParagGupta8-Sep-06 4:57 
AnswerRe: few queries in Stored procedures Pin
Stephen McGuire8-Sep-06 9:12
Stephen McGuire8-Sep-06 9:12 
GeneralRe: few queries in Stored procedures Pin
Stephen McGuire10-Sep-06 16:18
Stephen McGuire10-Sep-06 16:18 
AnswerRe: few queries in Stored procedures Pin
Colin Angus Mackay10-Sep-06 9:34
Colin Angus Mackay10-Sep-06 9:34 
AnswerRe: few queries in Stored procedures Pin
Uma Kameswari10-Sep-06 20:49
Uma Kameswari10-Sep-06 20:49 
GO is not a Transact-SQL statement; it is a command recognized by the osql and isql utilities and SQL Query Analyzer.

osql Utility
The osql utility allows you to enter Transact-SQL statements, system procedures, and script files. This utility uses ODBC to communicate with the server.


isql Utility
The isql utility allows you to enter Transact-SQL statements, system procedures, and script files; and uses DB-Library to communicate with Microsoft® SQL Server™ 2000.




SQL Server utilities interpret GO as a signal that they should send the current batch of Transact-SQL statements to SQL Server. The current batch of statements is composed of all statements entered since the last GO, or since the start of the ad hoc session or script if this is the first GO. SQL Query Analyzer and the osql and isql command prompt utilities implement GO differently.

A Transact-SQL statement cannot occupy the same line as a GO command. However, the line can contain comments.

The scope of local (user-defined) variables is limited to a batch, and cannot be referenced after a GO command.

SQL Server applications can send multiple Transact-SQL statements to SQL Server for execution as a batch. The statements in the batch are then compiled into a single execution plan. Programmers executing ad hoc statements in the SQL Server utilities, or building scripts of Transact-SQL statements to run through the SQL Server utilities, use GO to signal the end of a batch.

Applications based on the DB-Library, ODBC, or OLE DB APIs receive a syntax error if they attempt to execute a GO command. The SQL Server utilities never send a GO command to the server.

GO is a utility command that requires no permissions. It can be executed by any user.



Regards,
Uma
AnswerRe: few queries in Stored procedures Pin
Amit Kumar G12-Sep-06 16:35
Amit Kumar G12-Sep-06 16:35 
QuestionHow can I set the output format of "FOR XML"? Pin
Red_Wizard_Shot_The_Food8-Sep-06 2:56
Red_Wizard_Shot_The_Food8-Sep-06 2:56 
AnswerRe: How can I set the output format of "FOR XML"? Pin
Tushar Kothari11-Sep-06 3:51
Tushar Kothari11-Sep-06 3:51 
QuestionHow to install the Postgre SQL using Silent Mode in Windows 2000? Pin
Arul Joseph8-Sep-06 0:52
Arul Joseph8-Sep-06 0:52 
Questionxp_smtp_sendmail/xpsmtp80.dll Pin
Arghya_mp7-Sep-06 23:55
Arghya_mp7-Sep-06 23:55 
QuestionRegarding Cursor Pin
param thaker7-Sep-06 23:05
param thaker7-Sep-06 23:05 
AnswerRe: Regarding Cursor Pin
Stephen McGuire8-Sep-06 9:23
Stephen McGuire8-Sep-06 9:23 
QuestionDatabase for Java [modified] Pin
eMtek7-Sep-06 20:33
eMtek7-Sep-06 20:33 
AnswerRe: Database for Java Pin
Dominic Pettifer8-Sep-06 2:36
Dominic Pettifer8-Sep-06 2:36 
QuestionParameterized Queries in the SELECT portion? Pin
Dominic Pettifer7-Sep-06 13:51
Dominic Pettifer7-Sep-06 13:51 
AnswerRe: Parameterized Queries in the SELECT portion? Pin
Not Active7-Sep-06 18:53
mentorNot Active7-Sep-06 18:53 
GeneralRe: Parameterized Queries in the SELECT portion? Pin
Dominic Pettifer8-Sep-06 2:31
Dominic Pettifer8-Sep-06 2:31 
GeneralRe: Parameterized Queries in the SELECT portion? Pin
Colin Angus Mackay10-Sep-06 9:27
Colin Angus Mackay10-Sep-06 9:27 
Questionupdating an IMAGE column Pin
jszpila7-Sep-06 5:15
jszpila7-Sep-06 5:15 
AnswerRe: updating an IMAGE column Pin
Michael Potter7-Sep-06 5:50
Michael Potter7-Sep-06 5:50 
Questioncombining multiple rows into single column Pin
Uma Kameswari7-Sep-06 2:32
Uma Kameswari7-Sep-06 2:32 
AnswerRe: combining multiple rows into single column Pin
Michael Potter7-Sep-06 6:02
Michael Potter7-Sep-06 6:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.