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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Rename table affect indexes?
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 12/05/2006 :  04:25:50  Show Profile  Reply with Quote
I am trying to rename a table in a database. The table name is Message_Log and has about 300 Million records. This table has one clustered index and 5 non-clustered indexes. I want to rename it to Message_Log_200611. Then I create a new table with name Message_Log. Will this affect the indexes in old Message_Log table? Will the process takes long time to finish?

Patron Saint of Lost Yaks

30421 Posts

Posted - 12/05/2006 :  04:30:11  Show Profile  Visit SwePeso's Homepage  Reply with Quote
* If using SQL 2000
Have to tables one with each user's last 100 messags or so, and one table for history purposes.
Create a view to select from both tables.

* If using SQL 2005
Use partitioned tables with 1 month of data for "top" partition, and the all other data in the other partition.

Peter Larsson
Helsingborg, Sweden
Go to Top of Page

Starting Member

2 Posts

Posted - 12/05/2006 :  05:29:15  Show Profile  Reply with Quote
Ok. May I know will the indexes in old Message_Log table be corrupted if i change the table name to Message_Log_200611? Will the process of renaming the table with 300 million records take long time to finish in 3 Giga hertzs processing speed server with 2 Giga byte RAM memory?
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000