joejack0330
Technical User
We keep our sales detail history in separate databases by year and each year has about 25 million records and each database is about 8-12 gig in size and we have about 9 years to do. We have union queries that just select * from each table. This works well but we need to add a field to these tables and would like to insert it in the middle of the table. I tested on my test sql box with one year and it took about 45 minutes to do this but real problem is the database grew from 12 gig to over 28 gig and transaction log goes to 17+ gig. This is ok for some of the history because we can do one at a time and the one drive has plenty of free space then we can clean up log and shrink db back down to about original size. But a couple of the databases are on a drive which doesn't have enough free space to handle. I know we could temporarily move these to another drive and do what we need to do then move back but is there another way to do it? Can we turn off transaction logging or anything just while we are doing it? We'd have to do it when no one else is on system and make sure to have a good back beforehand. We probably have enough space for database growth but not the extra 17 gig of log file.
Thanks, Joe
Thanks, Joe