SQL Server 2005
I need to import two flat files (.txt). Combined, these two files contain over 14 million rows. I need to load these files every weekend which will replace the destination table completely. I need to do this with as little impact on the destination table as possible (as far as locks and/or data-less table). The files are located on the same server the database is located.
I've thought about loading a staging table (no keys or indexes), applying keys and indexes after data is loaded and then renaming the tables so that staging becomes destination. I would be writing a VB.net program to process this.
I wanted to get some thoughts on other ways I can accomplish this with little impact. I could possibly have clients across the world accessing this data at 1 am Saturday morning my time. If more information is needed, let me know. Thanks.
I need to import two flat files (.txt). Combined, these two files contain over 14 million rows. I need to load these files every weekend which will replace the destination table completely. I need to do this with as little impact on the destination table as possible (as far as locks and/or data-less table). The files are located on the same server the database is located.
I've thought about loading a staging table (no keys or indexes), applying keys and indexes after data is loaded and then renaming the tables so that staging becomes destination. I would be writing a VB.net program to process this.
I wanted to get some thoughts on other ways I can accomplish this with little impact. I could possibly have clients across the world accessing this data at 1 am Saturday morning my time. If more information is needed, let me know. Thanks.