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
 General SQL Server Forums
 New to SQL Server Programming
 Indexes

Author  Topic 

AdamWest
Constraint Violating Yak Guru

360 Posts

Posted - 2010-05-04 : 10:02:41
I need to create an index on a table, or maybe more?

What I have is the app is very slow in loading the data and then displaying it.

I have no idea about indexes.

Also the app works via A stored proc to a data service in the Silverlight app.

Do I make an index on the largest table?

If this table is linked to another do both get an index?

Any help here would be great as I know nothing.

Thank you,
Adam


Transact Charlie
Master Smack Fu Yak Hacker

3451 Posts

Posted - 2010-05-04 : 10:14:44
You should read here: and then go into more depth about the required indexes.
http://www.sqlteam.com/article/sql-server-indexes-the-basics

It's too broad a subject to just say -- here's how you create and index.... on you go and enjoy. It all depends on the data and the sql queries you've written. Badly formed queries can't use indexes.

Also -- do you have any idea about keys? do your tables have primary keys?


Charlie
===============================================================
Msg 3903, Level 16, State 1, Line 1736
The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-05-04 : 11:35:58
Also check out this series http://www.sqlservercentral.com/articles/Indexing/68439/

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -