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
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 suggestion to create index on auidt table

Author  Topic 

ms.gangadhar
Starting Member

8 Posts

Posted - 2012-06-06 : 03:50:16
Dear All,

I have tables for audit to a transaction table and these audit tables are filled up so quickly as there is an entry for each transaction to a main tale.Hence i am planning to archive the audit table to a history table which is very similar schema as audit table.

Now i want to create an Indexes on Audit table pls kindly suggest.

Thanks
-Ganga

nigelrivett
Master Smack Fu Yak Hacker

3385 Posts

Posted - 2012-06-06 : 04:25:11
Depends on how yoou are using it.
If they are big yoou might want to consider partitioning so you can just swap out an old partition.

http://www.simple-talk.com/sql/database-administration/partitioned-tables-in-sql-server-2005/


==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -