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

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

enum5
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?

SwePeso
Patron Saint of Lost Yaks

Sweden
29908 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

enum5
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  
 New 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.05 seconds. Powered By: Snitz Forums 2000