Hi Mark,
Thank you for assisting me.
Please find all the requested information below:
- What is the table's current identity gap setting? (select identitygap from sysindexes where id = object_id('<table_name>') and indid < 2)
The identity gap is zero for the table.
- What is the current max(ident) value? (select max(<ident_col_name>) from <table_name>)
Min - 1790259173
Max -9630809127
- What is the table's current locking scheme ... allpages, datapages, datarows? (see outputof sp_help <table_name>)
Allpages locked table
- Does the table currently have a clustered index? (sp_helpindex <table_name>)
Yes. The table has a composite clustered index with three columns:
ID: numeric(10,0)
Name: varchar(40)
RowNum: numeric(10,0)
- Do you need to maintain the current identity values if/when copying the data to a new table?
No. Our team has agreed to regenerate the identity column values again. I have added the identity function to generate identity column values while doing select into.
- How big of a maintenance window do you have in which to perform the change?
I have to complete this by next week. I can do it either this weekend or the next weekend.
- How much of the current table is accessed on a normal basis? Is older data updated on a regular basis or is older data basically read-only? (Wondering if older data could be moved prior to your maintenance window; would require more logging for the actual maintenance window but could free up some wall clock time if you can move a large chunk of the data prior to the maintenance window.)
The table is not accessed much and it is only used to dump all the trade activity. The old data is still present in the table. I asked the same question on whether we can move the old data out but they are more focused on resolving this issue than moving the data.
- Are rows ever deleted from this table and if so, how many are deleted over a given period of time (eg, how many deleted in a week, in a month, in a year)?
I came to know that they tried to archive the old data sometime back which failed for some reason and there was no deletes later.
I hope, my answers are to the point and answers all your questions. Please let me know if I am going in the right direction or correct me if I am wrong.
Thanks a lot in advance.
Regards
ADNAN