SQL Server Performance

sql 2008 r2 optimize

Discussion in 'SQL Server 2008 T-SQL Performance Tuning' started by Wendy elizabeth, Jul 26, 2011.

  1. Wendy elizabeth New Member

    I have a question on how to optimize t-sql statement in a sql server 2008 r2 database. In my company one database is being redesigned into 9 other tables. This is due to to the one main table having everyrthing in it the entire database needed.
    I have a stored procedure that i need to change. This stored procedure in the old database only needed to refer to the one table. Now I need to join 9 tables together to obtain the same information.
    **Note this stored procedure is used to supply information into a C#.net 2008 windows application. The application displays information from this stored procedure for users to see. Basically i need all this inforamtion for the new version of the application to work.
    Part of the problem is some of the new tables do not contain any inforamtion, since the original may not have contained any information. This, i need to do left outer joins so all rows display.
    The new database has one table called 'NEW' that has lots of columns the are separate keys to the new tables.
    Thus, can you tell me what to do to optimize this query?
  2. pyale New Member

    Sadly, no - because you don't say what the actual query is. Also, we'd need to see the table and index strctures in more detail, together with some indication of how many rows there are in each.

    Can I also politely suggest that "NEW" is not a terribly good name for a database table!
  3. satya Moderator

    I believe these points are covered in your other post Wendy, hope you continue over there.

Share This Page