SQL Clone
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)

Ensure Table has only one row

By Harsha Majety,

Sometimes you have to create settings tables which only have one row. If you want to ensure table has only one row always and nobody can mess with it by deleting or inserting that row ,one way you can do it is to create triggers on the table to prevent deletes and inserts.

Total article views: 1118 | Views in the last 30 days: 2