Transact-SQL® User's Guide
Chapter 14 Using Batches and Control-of-Flow Language
A batch is terminated by an end-of-batch signal. With the isql utility, this is the word "go" on a line by itself
Local variables are declared, named, and typed with the declare keyword and are assigned an initial value with a select statement. They must be declared, assigned a value, and used within the same batch or procedure.