Home Forums Article Discussions Article Discussions by Author Discuss content posted by Michaël Hardman Create/ drop unique key RE: Create/ drop unique key
grahams-701143
SSC Rookie
Points: 44
More actions
September 24, 2009 at 6:26 am
#1057960
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