This has proved time and again to be a useful method of creating a datafeed.
DECLARE @EmployeeList varchar(100)
SELECT @EmployeeList = COALESCE(@EmployeeList + ', ', '') +
CAST(Emp_UniqueID AS varchar(5))
FROM SalesCallsEmployees
WHERE SalCal_UniqueID = 1
SELECT @EmployeeList
Technorati Tags:
sql-server,
sql
Be the first to rate this post
- Currently 0/5 Stars.
- 1
- 2
- 3
- 4
- 5