Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

INSERTS - (Full recovery model ; Bulk load recovery model) Expand / Collapse
Author
Message
Posted Monday, May 11, 2009 8:06 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-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
Post #714142
Posted Monday, May 11, 2009 10:10 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-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

Post #714300
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse