Using SQL Server 2000
I have the following example that is used multiple times through queries
TERR IN('I01','I02','I03')
Terr is VARCHAR.
I am not sure how to do it or if it is even possible to change the example above to the following
DECLARE @ABC VARCHAR(??)
SET @ABC = ('I01','I02','I03')
TERR = @ABC
Any help or guidance would be appreciated.
I have the following example that is used multiple times through queries
TERR IN('I01','I02','I03')
Terr is VARCHAR.
I am not sure how to do it or if it is even possible to change the example above to the following
DECLARE @ABC VARCHAR(??)
SET @ABC = ('I01','I02','I03')
TERR = @ABC
Any help or guidance would be appreciated.