|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: 2 days ago @ 1:13 PM
Points: 23,
Visits: 84
|
|
| What code should I use in SQL 2000 then?
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Yesterday @ 10:34 AM
Points: 423,
Visits: 782
|
|
something along the lines of...
Declare @assignTo nvarchar(4000) select @assignTo = Coalesce(@assignTo + ', ', '') + CAST(Name as nvarchar(250)) from table2 where ... Select @assignTo but fair warning that won't work in a subquery..to use it in a correlated subquery you'll have to write it into a UDF with table access.
Umm....as far as I know. It's been a while.
|
|
|
|