Create Index myIndex On myTable(myColumn)
What type of Index will get created after executing the
above statement

Answer Posted / mobin sathupally

If we simple say CREATE INDEX then non clustered index will
be created.At the same time if we say CREATE NON CLUSTERED
INDEX then also non clustered index will be created.

Eg.
CREATE TABLE Emp(
eid INT
,ename VARCHAR(20))

CREATE INDEX in_emp_eid
ON Emp(eid)
By executing above code we create non clustered index.

Eg.
CREATE TABLE Emp(
eid INT
,ename VARCHAR(20))

CREATE NONCLUSTERED INDEX in_emp_eid
ON Emp(eid)

By using this code also we create non clustered index only.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where cross join is used?

697


Explain can you implement data mining in ssrs?

122


How to create a new schema in a database?

763


How to enable tcp/ip protocol on a sql server?

801


What is the contrast between sql and pl/sql?

794


What is acid db?

678


What are unicode character string data types in ms sql server?

812


Explain “@@rowcount” and “@@error” in sql server?

727


How you can get a list of all the table constraints in a database? : Sql server administration

692


What languages bi uses to achieve the goal?

700


What are the methods used to protect against sql injection attack?

810


How can sql injection be stopped? : sql server security

726


What is the concept of optimization?

781


what is a traditional network library for sql servers? : Sql server database administration

645


What is encryption key?

98