Question: Create and Manage indexes using Management Studio Please delete all the indexes on EMPLOYEE table and WORK_ON table first. (a) Create an unique, non-clustered index

Create and Manage indexes using Management Studio

Please delete all the indexes on EMPLOYEE table and WORK_ON table first.

(a) Create an unique, non-clustered index named emp_ssn for the EMPLOYEE table : the index key is "SSN ", and the fill factor is 80%.

For example:

Indexes/Keys Selected Primary/Unique Key or Index: IX_Department* Add Delete Editing properties for new 

 Rename the emp_ssn index to ix_emp_ssn.

(c) Drop the ix_emp_ssn index.

(2) Create and Manage indexes using Transact-SQL

(a) Create an unique, non-clustered index named “emp_ssn” for the EMPLOYEE table : the index key is "SSN ", and the fill factor is 80%.

SQL Text

Screenshot of result

(b) Rename the emp_ssn index to ix_emp_ssn. (Hint: use the sp_rename stored procedure)

(c) Create a non-clustered index named “emp_project_index” for the WORK_ON table : the index key is "ESSN(asc) " and “PNO(desc)”, and the fill factor is 50%.

EMPLOYEE FNAME MINIT LNAME SSN B Smith 123456789 John Franklin Alicia T Wong 333445555 J 999887777 Jennifer S EMPLOYEE Fname Minit Lname Ssn Bdate DEPARTMENT Dname Dnumber Mgr_ssn Mgr_start_date DEPT LOCATIONS Dnumber 

Indexes/Keys Selected Primary/Unique Key or Index: IX_Department* Add Delete Editing properties for new unique key or index. (General) Columns Is Unique Type Identity (Name) Description 4 Table Designer Create As Clustered Data Space Specification 4 Fill Specification DNAME (ASC) No Index IX_Department No PRIMARY ? Close X 111

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on your question it appears youre asking how to manage indexes in SQL Server Management Studio SSMS and through TransactSQL TSQL However to prov... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!