itsmarkdavies
Programmer
I have inherited a large script which uses DateFrom and DateTo parameters in 4 separate places in the script. I would like to DECLARE these parameters and put them into 2 variables to use in the 4 instances (instead of having to alter the script every time I run it). My problem is that the GO statement ends a batch of commands and the script loses the value of my variables.
Can anyone tell me exactly what the significance of the GO statement is in a SQL script, what it does and under what circumstances it is really necessary.
Thanks for your help.
itsmarkdavies@hotmail.com
itsmarkdavies@hotmail.com
Can anyone tell me exactly what the significance of the GO statement is in a SQL script, what it does and under what circumstances it is really necessary.
Thanks for your help.
itsmarkdavies@hotmail.com
itsmarkdavies@hotmail.com