![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Just finishing off something and made an adjustment regarding global variables - but in an execute sql statement i cannot seem to be able to use the global variable in an SET statement. Is this true - can it only be used directly in a where statement and not as part of a variable ? \Michael Vardinghus |
#3
| |||
| |||
|
|
to set a vairable value in T-SQL use SELECT @@Varaible = <Value "Michael Vardinghus" <anonymous (AT) discussions (DOT) microsoft.com> wrote in message news:F7544C83-C95E-4507-966C-BA20113873DF (AT) microsoft (DOT) com... Just finishing off something and made an adjustment regarding global variables - but in an execute sql statement i cannot seem to be able to use the global variable in an SET statement. Is this true - can it only be used directly in a where statement and not as part of a variable ? \Michael Vardinghus |
![]() |
| Thread Tools | |
| Display Modes | |
| |