|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Sunday, May 31, 2009 10:19 AM
Points: 103,
Visits: 982
|
|
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
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 2:54 AM
Points: 37,692,
Visits: 29,951
|
|
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 2008, MVP SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter We stand on the bridge and no one may pass
|
|
|
|