I created a SQL script to add an entry in different database. However, when I run the script through SQL Server Management Studio.
declare @address varchar(50) s
It's the GO statement.
all local variable declarations must be grouped in a single batch. This is done by not having a GO command until after the last statement that references the variable. (from MSDN)