C# Corner
Tech
News
Videos
Forums
Trainings
Books
Events
More
Interviews
Jobs
Live
Learn
Career
Members
Blogs
Challenges
Certifications
Bounties
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Constraints on the whole table in SQL Server
WhatsApp
Venkatesan Jayakantham
14y
3.4
k
0
0
25
Blog
One of my blog reader have asked me a query, Is it possible to give constraints to all the columns in a table in a single shot?
CREATE TABLE dbo.Venkat_Table
(
id int primary key,
Name varchar(50) unique,
Age int Unique
)
Yes it's possible. We can provide the constraints.
Applying terms and conditions -> The constraints should not conflict with one another. Primary key constraints can be given only once for a table.
Cheers,
Venkatesan Prabu .J
Head - WWW.Kaashivinfotech.com
http://venkattechnicalblog.blogspot.com/
People also reading
Membership not found