Home Forums SQL Server 2005 Development Dumb Question RE: Dumb Question
Raleigh Beringer
SSC Rookie
Points: 26
More actions
July 18, 2008 at 10:06 am
#845151
You are explicity setting the value for @ss as ProductID
Try something like the following
Set @ss = (SELECT ProductID FROM SomeTable)
Note that you may have to set a top 1 or where clause to ensure only 1 result is returned.