|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Thursday, April 25, 2013 1:55 AM
Points: 10,
Visits: 109
|
|
|
|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Saturday, March 09, 2013 3:23 AM
Points: 40,
Visits: 99
|
|
You can get rid of the need for the cursor
SELECT @R=@R+column_name+',' from INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE where constraint_name =@uq_name
G
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Wednesday, January 26, 2011 1:32 PM
Points: 146,
Visits: 327
|
|
| I agree - any time I see a CURSOR declaration in the first few lines of code...
|
|
|
|