TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server Transact Basic to Expert - Add Default constraints to existing table
Karthikeyan Anbarasan
Jun 07, 2011
2.9
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
SQL Server Transact Basic to Expert - Add Default constraints to existing table
This blog shows how to add a default constraint to an existing table
Syntax:
ALTER TABLE tablename
ADD CONSTRAINT constraintname
DEFAULT defaultvalue
FOR columnname
SQL Server Transact Basic to Expert - Add Default constraints to existing table
Next Recommended Reading
SQL Server Transact Basic to Expert - Add Unique Constraints to Existing Table