We walk in the dark places no others will enterWe stand on the bridge and no one may pass
DECLARE @i intSet @i = 0Select * from SomeTableSELECT @ i -- will workDECLARE @i intSet @i = 0Select * from SomeTableGOSELECT @ i -- will not work. Error must declare variable @i. It was declared in the previous batch, not the current one