If you import 6 GB over a one hour period, and the log grows by 100mb
increments, then that is about 1 log extention every minute. Therefore,
check the autogrow properties of your data and trasactions files and insure
they are growing by a percentage of at least 10% or 1000 mb (1 GB). You can
always truncate the logs after the import process is over. This reduces the
number of times that SQL Server has to re-adjust the size while importing.
It also helps if the physical location of the transaction logs on a seperate
HD from the data files, becuase it allows the hardware devices to operate
independently.
You could also try extracting the text files into several smaller files
instead of one large file and then have 2 bulk copy processes running
simultaneously. I have found that 2 concurrent BCP processes yield the best
performance than 1 or even > 2, becuase BCP alternates between reading a
batch from the source file and inserting to the target table, leaving idle
bandwidth for another process. With more than 2 processes, the 3rd seems to
always be blocked by the first 2. However, running multiple BCP processes
will bring the server to a crawl for any other users.
"Permood" <Perm
...@discussions.microsoft.com> wrote in message
news:6AF25AFC-8C20-477D-B88D-408BF5183E9E@microsoft.com...
> JT & Alejandro Mesa,
> Thanks for your remarks.
> We are you using simple recovery model. These databases are use for
analysis
> so i no need full recovery model. and we destray this data every month.
also
> i don't have any index(s) on these tables when i am importing the data. I
> meant to say by using VB.NET word that, VB.NET use ADO.NET 2.0 SQLBulkCopy
> method with 100,000 batch size. I tried 10,000 to 100,000 batch sizes.
> still this import process is slow (as believe so). Even server machine
have
> 4 GB RAM. the only thing which I didn't try is DTS package, one reason i
> didn't try DTS package yet, SQL Server 2000 DTS packages are not
comptiable
> with SQL Server 2005 DTS packages, and I was thinking if down the road we
> move to SQL Server 2005 i have to reCreate all DTS packages, which is more
> then 60 of them (currently SQL Scripts).
> How about the tempdb Size and database's LDF and MDF file size, would
> increase in the size will help to get better performance.
> Is there any thing else i can do to make this process faster?
> once again thanks for your time and help.