SQL Server Interview Questions

1. Which TCP/IP port does SQL Server run on?
By default SQL Server runs on port 1433.

2. What is the difference between clustered and a non-clustered index?
A clustered index is an index that rearranges the table in the order of index itself. Its leaf nodes contain data pages. A table can have only one clustered index.
A non-clustered index is an index that does not re-arranges the table in the order of index itself. Its leaf nodes contain index rows instead of data pages. A table can have many non-clustered indexes.

3. List the different index configurations possible for a table?
A table can have one of the following index configurations:
No indexes
A clustered index
A clustered index and many non-clustered indexes
A non-clustered index
Many non-clustered indexes

4. What is the recovery model? List the types of recovery model available in SQL Server?
Recovery model basically tells SQL Server what data should be kept in the transaction log file and for how long. A database can have only one recovery model.
It also tells SQL server that which backup is possible in a particular recovery model selected.
There are three types of recovery model:
Full
Simple
Bulk-Logged

5. What are different backups available in SQL Server?
Different possible backups are:
Full backup
Differential Backup
Transactional Log Backup
Copy Only Backup
File and Filegroup backup


0 comments:

Post a Comment

Please do not enter any spam link in the message box.