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

Answers were Sorted based on User's Feedback



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

Answer / swapna

Non-clustered index. Important thing to note: By default a
clustered index gets created on the primary key, unless
specified otherwise.

Is This Answer Correct ?    3 Yes 0 No

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

Answer / 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

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

Answer / rams

Non-clustered index. Important thing to note: By default a
clustered index gets created on the primary key, unless
specified otherwise.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL Server Interview Questions

How to find the last update record in SQL Server?

4 Answers  


Write a SQL Query to find first Week Day of month?

2 Answers  


How can you insert null values in a column while inserting the data?

0 Answers  


Which operator do you use to return all of the rows from one query except rows are returned in a second query?

0 Answers  


Which command is used for user defined error messages?

0 Answers  






what is package configuration variable?How to change file name in folder dynamically?Plz help me

1 Answers  


Comment,Datatypes are unlimited

0 Answers   IBM,


What is the difference between cross join and Full outer join?

1 Answers   HP, Standard Bank,


Can you tell me the difference between DELETE & TRUNCATE commands?

15 Answers  


What is ms sql server index?

0 Answers  


What is a full text index?

0 Answers  


Explain the collation?

0 Answers  


Categories