Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
T-SQL to drop ROWGUID designation
Message
 
 
To
14/01/2010 13:34:03
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01444011
Message ID:
01444172
Views:
179
This message has been marked as a message which has helped to the initial question of the thread.
ALTER TABLE mytable
  ALTER COLUMN mycolumn
  DROP ROWGUIDCOL
>I have a database with UID pks which are also designated as ROWGUID=yes
>
>In poking around in SSMS it seems that the only place this shows up is in the Key properties, where ROWGUID for the key can be flipped to NO.
>
>But I need to do this programmatically in a script. I can successfully blow away the pk and that seems to blow away the index and the key as well as the column pk designation but my SMO tool is still complaining that after I strip it all clean it cannot create a new index on that column as it is a ROWGUID.
>
>I am a little fuzzy about where the ROWGUID designation is stored. If i do a script to on the key or index I don't see anything different from those that are not designated as Rowguid. I understand in creating the table in code how to turn it on ( off by default of course ) but I don't see anyplace to turn it off without manually doing it to the key in SSMS.
>
>Thoughts?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform