Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Convert Unique Identifier to Varchar data type

By Gulappa Vijaya Kumar,

Script will drop the Default, Primary, Unique, Foreign Constraints, Index and ROWGUID on Unique Identifier data type column and finally it alters the unique identifier to varchar (38) data type. I have compile and execute the script in my database server. Script has executed successfully.

Total article views: 573 | Views in the last 30 days: 1
 
Related Articles
SCRIPT

Create/ drop unique key

This script will show you how to create/ drop unique key.

FORUM

Unique Constraint

Unique Constraint

FORUM

Unique Constrain

Unique Constrain

BLOG

Unique/Non-Unique Clustered Indexes

In the last blog post I have talked about unique/non-unique clustered indexes on a heap table. A ta...

BLOG

Unique and non-unique non-clustered indexes on a unique clustered index

In the last weblog post I have talked about the difference of unique and non-unique clustered indexe...

 
Contribute