Categories
Sql Server

How to create NOT NULL constraints In Sql server

Constraints are used to limit the type of data that can go into a table. SQL NOT NULL Constraint:- The NOT NULL constraint enforces a column to NOT accept NULL values. Query:- CREATE TABLE Account ( P_Id int NOT NULL, LastName varchar(50) NOT NULL, FirstName varchar(50) ) In this query Id and Lastname is NOT NULL […]

Categories
Sql Server

What are Constraints

What are Constraints:- Constraints are an ANSI-standard method of enforcing data integrity. Constraints ensure valid data values are entered in columns and that the relationships between tables should be maintained. Integrity Type Constraint type Target Description Domain DEFAULT Column Specifies the default value for the column when INSERT statement does not provide a value. CHECK Column Specifies […]

Categories
Sql Server

What is Data Integrity in Sql server and its types

What is Data Integrity in Sql server and its types An important part in database designing and planning is deciding way to enforce the integrity of the data. Data integrity refers to the consistency and accuracy of data that is stored in your database.Enforcing data integrity ensures the quality of the data in your database. […]

Categories
Sql Server

What Are Partitioned Indexes in Sql server

In SQL Server 2008, just as you can divide tables into partitions. Partitioned indexes are indexes in which the index pages are separated horizontally into multiple physical locations based on range of values in the index column. The physical locations for partitions are filegroups. Partition indexes are use for the same reason that for partition […]