Interviewer And Interviewee Guide

MS SQL Server Indexes Interview Question:

Write down the syntax and an example for create, rename and delete index?

Submitted by: Administrator
Create Index:

CREATE INDEX index_name ON table_name (col_1,col_2..);

Example:

Create index index_sample ON employee(emp_id)

Rename Index:

ALTER INDEX index_name RENAME to new_index_name ;

Example:

ALTER INDEX index_sample RENAME to new_sample

Delete index:

drop index [schema.]index [force];

Example:

Drop index new_sample
Submitted by: Administrator

Read Online MS SQL Server Indexes Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.