what is Constraint? How many types of constraints in SQL ?

Answer Posted / vinod

Constraints are used to restrict the insertion of unwanted data.
Using constraints you can maintain data integrity by preventing invalid data being entered.

Constraints are Five type
Primary key
Unique Key
Foreign Key
Not Null
Check

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you trace the traffic hitting a sql server?

618


How do you size a resultset?

504


How do clustered indexes store data?

618


Do you know what is replace and stuff function in sql server?

469


What is difference between delete and truncate commands?

531






How to name query output columns in ms sql server?

538


How do you maintain database integrity where deletions from one table will automatically cause deletions in another table?

716


Describe the left outer join & right outer join. : sql server database administration

590


what are the core components of SSRS?

92


What are the main differences between #temp tables and @table variables and which one is preferred?

555


How to define the name and server for a new dsn?

549


Where do you find the default Index fill factor and how to change it?

607


Benefits of Stored Procedures?

573


What were the latest updates to SQL Azure service?

94


What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?

692