• Can anyone help on this.

    I try to run this on SQL Server 2005 and it don't work. Even after lau's changes.

    The code for the cursor cur_constraints does not return anything.

    I don't have enough knowledge two find out whats wrong, but by running the select on it's own I can see that the Cons.info always contains 0 (zero). Without the AND Cons.info = Cols.colid, it returns all constraint rows for the table.

    Does anyone out there have the skills to tell me how to fix this.

    Thank you.