Link to home
Start Free TrialLog in
Avatar of jasww
jasww

asked on

Alter existing UNIQUEIDENTIFIER column to make it the ROWGUID

How do I, from within a proc, alter an exisiting table to make the PK column also the ROWGUID column?
I cannot see any way of doing it without dropping the column and recreatiing it with this constraint.

It must be possible to turn a column intoa ROWGUID column without dropping and remaking the column, because Enterprise Manager is able to do so with the IsRowGuid flag.

Thanks
Daniel
JASWW
ASKER CERTIFIED SOLUTION
Avatar of BillAn1
BillAn1

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jasww
jasww

ASKER

Rock and roll.

Perfect.

God don't you love T-SQl and it's oh-so-easy syntax?

Thanks