Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Query related to Index

Author  Topic 

shubhada
Posting Yak Master

117 Posts

Posted - 2006-04-10 : 09:36:08
Hi,
I have one query related to execution of index.
Suppose I have one table as follow
empno empname sal
1 abc 10000
2 xyz 20000
3 por 30000
empno is primary key and have index on this primary key.
My query is that suppose by mistake index has been deleted then how data can be access?


khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2006-04-10 : 09:38:46
Can't you can re-create the index ?

Anyway, you don't need index to access the data.
For example , just
select * from yourtable where empno = 2




KH


Go to Top of Page

shubhada
Posting Yak Master

117 Posts

Posted - 2006-04-10 : 09:41:54
plz explain me the difference of with index and without index on table.
we use index to access the data from table (performance point of view) .i am right or not...

shubhada
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-04-10 : 10:08:11
Read about index in sql server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -