May 11, 2009 at 8:06 am
Hi-
I have a database that some times need to import data (lots of data).
This data is inserted to staging tables and then (after it as been treated) it's passed to my real tables (inside the same database).
Note - I know that i could do the process, having for instance, the stagging tables on other database in single user mode.
But considering this process, i need to know if befour i start inserting data from a XML file into this table (staging tables) if i can change the recovery model from full to bulk load?
bulk load recovery model don't log to the log file the inserts? while i'm inserting this data from the XML to the staging table? or the bulk recovery model does not log the inserts , only if the inserts are being made by bulk insert statements? (in this case my inserts are not being made by bulk insert)
tks,
Pedro
May 11, 2009 at 10:10 am
Bulk logged recovery just allows some operations (not many) to be minimally logged. The details are in Books Online and there are a lot of details. BULK INSERT, bcp, might be a couple more. Restrictions are pretty nasty too.
INSERT INTO ... is not one of those commands. It will fully log regardless of what recovery model you're in (prior to SQl 2008)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply