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)

Create/ drop unique key

By Michaël Hardman,

Hi,

This is my first script and yet it's not a [select 'hello world'] ^^.

It will work even if the unique key contain more than 1 column

Hope it will be usefull.

 

Regards.

Total article views: 659 | Views in the last 30 days: 2
 
Tags
create    
drop    
primary key (pk)    
unique    
 
Contribute