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.
Author |
Topic |
influanza
Starting Member
2 Posts |
Posted - 2009-09-13 : 08:50:33
|
hi. I'm using mssql 2000 and my table of database has 10 million rows records. my select query returns 1 record take 30 seconds. how can I SPEED up my query.this my select code:select p1,p2,p3 from table_name where p_id='id' |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2009-09-13 : 09:15:34
|
make p_id an index KH[spoiler]Time is always against us[/spoiler] |
|
|
influanza
Starting Member
2 Posts |
Posted - 2009-09-13 : 10:24:08
|
is there any way??? |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2009-09-13 : 10:44:29
|
Like KH already has postet: what's about proper indexing? No, you're never too old to Yak'n'Roll if you're too young to die. |
|
|
|
|
|