Welcome, Guest Ohm namah shivoy
www.faqpanel.com
Home | ASP.Net | C-Sharp | Winforms | MS SQL | AJAX | XML | .Net Training*** | Search
Invite friends 
Extras 
VS Tips & Tricks
Top 10 .Net Tools
Special folders in ASP.Net
VS Find Combobox
 ASP.Net Interview Questions and Answers
What is the DEFAULT constraint in SQL Server?
A DEFAULT constraint, like all constraints, becomes an integral part of the table definition. It defines what to do when new row is inserted that does not include data for the column on which you have defined the DEFAULT constraint. You can either define it as a literal value(like default salary to zero or UNKNOWN for a string column) or as one of several values such as GETDATE().

The main things to understand about a DEFAULT constraint are -

1. DEFAULTs are only used in INSERT statements- They are ignored for UPDATE and DELETE statements.
2. If any value is supplied in the INSERT then the default is not used.
3. If no values supplied the default will always be used.

How to SELECT TOP N records from mytable without using TOP keyword?
What is DTC (Distributed Transaction Coordinator) in SQL Server?
What is the row size in SQL Server 2000?
What is the UNIQUE KEY constraint in SQL Server?
How many Columns per SELECT statement is possible in SQL Server?
What is the difference between a primary key and a unique key?
State true or false. EXISTS, SOME, ANY are operators in SQL ?
Do we need a commit after DDL statements?
What is the advantage of Materialised View?
Which command is used to get back the privileges offered by the GRANT command in SQL Server?