What are constraints?
Answer / Atul Chaudhary
Constraints in SQL Server are rules that control the type and nature of data that can be stored in a column or table. Constraints include primary keys, foreign keys, check constraints, unique constraints, and default constraints.nExample:n```sqlnCREATE TABLE TableName (Id INT PRIMARY KEY);nALTER TABLE TableName ADD CONSTRAINT chk_Column CHECK (Column > 0);```
| Is This Answer Correct ? | 0 Yes | 0 No |
What are rows and columns?
What is resource governor in sql server?
What is WITH CHECK OPTION
3 Answers Karur Vysya Bank KVB,
What is the use of placing primary key and foreign key constrains on columns.
Is index a datbase objects in sql server?
Explain the storage models of OLAP?
What is stored procedures?
Explain what is cte (common table expression)?
Which index created when Create Index on table(col), Why
Can a stored procedure call itself(recursive). If yes what level and can it be controlled.?
What is a trace frag? Where do we use it?
as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)