Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server






SuperbHosting.net & Arvixe.com have generously sponsored dedicated servers and web hosting to ensure a reliable and scalable dedicated hosting solution for BigResource.com.







Best Recovery Model


What would be the best Recovery Model for: a database which is 4 gig in size and imports via MSAccess queries and also stored procedures approximately 400,000 meg of data each month (and some other update queries are run against it) and it is also queried off of for totals on weekly basis?

The problem is that the SQL Server box only has 512 meg of memory and the tranlog on this database grows tremendously each import and when update queries are run against it. This tends to slow things down a bit on our other databases. We are getting a new SQL Server box but until then, what would be the best recovery model? I currently have it as Bulk-Logged and allow the tranlog to grow by 10% (with a base of 250 meg). The tranlog grows to up to 5-10 gig and in order to shrink it, I have to change the recovery model to Simple, and then back to Bulk-Logged in order to shrink it (I've tried all the dbcc shrinkdatabase, dbcc shrinkfile, dbcc showcontig, and dbcc checkdb commands as well as BACKUP LOG dbName WITH TRUNCACTE_ONLY and nothing will shrink it unless I change the recovery model to simple.)


View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Can We Pause Log Shipping, Bring Primary Db To Simple Recovery Model And Then Back To Full R Model?
 

We have the following scenario,
 
We have our Production server having database on which Few DTS packages execute every night. Most of them have Bulk Insert stored procedures running.
 
SO we have to set Recovery Model of the database to simple for that period of time, otherwise it will blow up our logs.
 
Is there any way we can set up log shipping between our production and standby server, but pause it for some time, set recovery model of primary db to simple, execute DTS Bulk Insert Jobs, Bring it Back to Full recovery Model AND finally bring back Log SHipping.
 
It it possible, if yes how can we achieve this.
 
If not what could be another DR solution in this scenario.
 
Thanks Much
Tejinder
 
 

View Replies !   View Related
DTS - Recovery Model
SQL Server 2000 SP3.
Prior to SP3 the recovery model was switched to simple during transfer (Copy object task) and changed back to the previouis setting after DTS was complete.
Nice thing because performance was increased and T-Log was keep small.

Now I assume that the recovery model is switched to bulk-logged causing the T-Log to explode, to be onest not in all my databases.

1.Is my interpretation regarding recovery model correct?
2.Does anybody knows the reason of this change?

Any suggestion is really appreciate.
Thank you very much - kind regards.

View Replies !   View Related
Recovery Model
Hello,
I'm new to MS SQL Server I want to know which recovery model is good, Full or Bulk Logged as I'm doing full backup at 11:00 PM and diffential Backup at 12:30 PM and from 8:00 AM to 6:00 PM 15 min log backups.
Please guide me which recovery model should I choose.

Thanks
Lara

View Replies !   View Related
Recovery Model
I have created a database in SQL 2000, and I am trying to change the Recovery option to FUll,so I can backup the logs. But when I select Full under the Recovery Option the OK button is grayed out.

This is only happing on 2 database.

Is this a bug in SQL 2000?

Also,I try to do this through Alter Database but I get syntax error.
Here the syntax I use:

Alter database archive
<recovery option> ::=Recovery{Full}


Thank You,
John

View Replies !   View Related
Recovery Model
I can't understand what is diff between simple & bulk-logged recovery
model

View Replies !   View Related
How To Choose The Recovery Model?
Hello, everyone:

There are some explanations on this topic from books and BOL. Could you offer the real experience? Thanks.

ZYT

View Replies !   View Related
Recovery Model And Replication
does the recovery model also change in a replication enviroment when you change a database from simple to full?
regards
Johan van der Wiel
Johan.vanderWiel@getronics.com

View Replies !   View Related
Change Recovery Model
A quick question about changing recovery model using sql statement.

ALTER DATABASE test set recovery_option = RECOVERY { BULK_LOGGED }

Error message: [Microsoft][ODBC SQL Server Driver]Syntax error or access violation

Immediate help needed !!

View Replies !   View Related
Recovery Model To Simple
We are using a .bat script to restore several client dbs onto our sql server 2000 db. We want to set the client dbs from full recovery to simple. What command should I use in the .bat file to make this change?

.bat file ==
:: Second, restore data from SQL Server backup file to SQL server...
isql -E -S ao3ao3 -Q "RESTORE DATABASE CBSN FROM DISK = 'D:MARS_SYSDATAUPDATESCBSNCBSN.BAK' WITH MOVE 'MEDISUN_BCNV_Data' TO 'D:SQLDATACBSN_data.mdf', MOVE 'MEDISUN_BCNV_Log' TO 'D:SQLDATACBSN_log.ldf',REPLACE;"

View Replies !   View Related
Simple Recovery Model
We have a fairly large database that we use to store mom alerts and it stopped alerting as it's transaction log became full. I suggested to the owner of the database to set the simple recovery model so the log could automatically be truncated. However, it appears that the database is frequently reaching it's limit (of 3gb) and I'm having to set the limit even higher on a daily basis. Can anyone tell me why this is occuring? I understood that when the log file reaches 70% it should automatically shrink?

Kind Regards

Mike

View Replies !   View Related
Recovery Model Problem; Db Properities
Hello,I've follow problem - thing to consider.SQLServer 200 sp3a, ms win 2003 serverdb simple recoveryThere is a production database, wich is around 20gb big. Db is backedup each day completely, but it takes up to 30 minutes.Because there is a simple recovery model, there is no transaction logbackup (it fails anyway), and we do not have up-to-point recovery.I'm considering to switch to full recovery model, but ....The problem is, I do not want to affect performance (when the backup isrunning, database is hardly avalible).So my question will be: does the full recovery model, will be betterfor db performance (for acces and blocking db; means, does it will takeshorter?)Strategy will be (I hope ok) to back up during the week onlytransaction log (incremental), and once at the weekend, full databasebackup.Generaly, which one is better for performance?Which strategy will be the best, to keep performance at high level, butalso have the possibility to restore data (in case of emergency) fromthe newest possible backup.Thanks for helpMatik

View Replies !   View Related
Recovery Model Of Subscription Database
Hi:

I am having lot of log problems with Subscription databases.  Currently all my subscription databases are on Full recovery mode.  I am thinking to change them to simple because I don't I will be doing point in time recovery of them.

Do the subcription databases have to be on Full mode?  Can I change them to simple to keep my log small and then I do not have to backups of my logs also?  Please let me know.

 

Thanks

 

 

View Replies !   View Related
Recovery Model And Transaction Log Size
Hi,
What is the relationship between recovery model and transaction log? How does recovery model affect txn log file size?
How to decide which model should I use?

Thank you

View Replies !   View Related
Recovery Model Code In SQL 2000
In SQL 2005, sys.databases has a column named recovery_model that stores a code for the type of recovery model used by the database. Where is the recovery_model column in the SQL 2000 master database?

 

Thanks,

Craig

View Replies !   View Related
Model Database Recovery Planning
I cannot think of any reason, in our environment, why I would recover the model database.  Change framework has all databases coming from DEV & QA before landing on PROD.  We have never used the model database as framework of new databases either.
 
So, if I discontinued backup of the database, what is my recovery method if it become corrupt?  Since mine is not used, can I simply copy it from another server?

View Replies !   View Related
Full Recovery Model - Log Doesn't Grow?
Hi all,I have a SQL Server 2000 database that is using the Full recoverymodel. The database is purely receiving inserts (and plenty of them)with maybe some view/table creation for reporting.In this state I would expect the log to grow ad infinitum but it getsto about 32% used and then empties.The log is not being backed up at all so am I missing something else?CheersDee

View Replies !   View Related
Restore From Snapshot After Changing Recovery Model
Given the follwoing scenario: You create a snapshot of a database with full recovery model, change it's recovery model to simple, then perform several updates/modifications on the database, before you finally (due to an error) restore the database from the snapshot.

Will the log chain be broken or not? The resteore sets the recovery model back to full, but I'm still a bit "curious" about the transaction logs.

View Replies !   View Related
Stored Procedure For Changing Recovery Model ?
The SQL Server is running full recovery model but they would like it to be changed to simple while the data backup occurs then set back to full. Is there a way to do this in a stored procedure or is it all done via options ? Thanks

View Replies !   View Related
Recovery Model To Be Used For A Data Flow Task
 
Hello there
I have a SSIS 2005 DTSX Package which has several Data flow tasks which directly dump data between tables from 2 different databases.
Suppose if my destination database is named, DestinationDB, what recovery model should I select for this database so that my ldf file size does not explode? I want to keep the ldf file as small in size as possible.
 

Currently I have used Simple Recovery model, and the ldf file size goes to around 80 GB. (Inserting around 200 million rows)
Will Bulk Logged model be a better option?
 Also what does a SSIS 2005 Data flow task use internally? (Insert operation or some sort of Bulk Insert between DBs)
 
Please help.

 

View Replies !   View Related
New Databases Defaulting To The Simple Recovery Model
 When I create a database, is there a way to make sure that the default recovery model is Full instead of Simple?

View Replies !   View Related
Log Truncation In The Simple Recovery Model - Can You Help My Understanding Of It Please
On SQL 2000 or SQL20005 will a database's log file automatically be truncated if the database is on simple recovery model?

The reason I ask is that we have a database (simple recovery) that keeps growing its logfile each weekend which causes disc space problems.

I am kinda new to SS but from the reading in BoL I've done was under the impression that for simple recovery model log records are only needed until the transaction has been written to disc and committed, and that SS will handle truncating obsolete records from the log where necessary.

I'm doing DBCC SQLPERF(logspace) which shows this first thing on a Monday morning:

Database Name  Log Size (MB)   Log Space Used (%)
-------------- --------------- ---------------------

myDB           4841.93         99.19465


Note the size of the log file - the data file is only 700MB!

Issuing a DBCC OPENTRAN doesn't show any open transactions, and a CHECKPOINT doesn't do anything to reduce the log space used (which if there were dirty records in the log still not written to disc this ought to do shouldn't it?).

The database is only written to as a replication subscriber.

Any suggestions what would be causing the log file to fill up?
At the moment I'm resorting to BACKUP LOG myDB WITH TRUNCATE_ONLY and considering scheduling this as an hourly job over the weekend - any reasons why this could be a bad idea?

Many thanks,
Moff

View Replies !   View Related
Recovery Model Indicator - Which System Table?
Hi
 
I hope you can help as I am really scratching my head on this one.  I am pulling together an assessment of the Disaster Recovery readiness for an organisation I am working at.  Part of the assessment I am doing is the recovery model of each of the databases.
 
I have scripts that are already pulling lots of data from 40+ servers and 500+ databases.  However, I cannot seem to find anywhere within the MASTER or MSDB or the database itself where the Recovery Model flag is held.  Obviously I can right click on the database and click properties and it is there, but I need to automate this task (as it will probably be a weekly assessment).
 
I have checked sysdatabases and almost every other table, but nothing obvious as to where this flag is.
 
Any ideas? 

View Replies !   View Related
Backup Of Ldf File In Simple Recovery Model
 

Hello,

 

I have a question regarding the backup for the database in Simple Recovery Model.

In this Model, I know we can restore only to the last full backup or can use differential

Backup, if implemented as a part of backup.

 

But my point of confusion is about the backup of '.ldf' file, should those file should be backed up in the

Maintenance Plan, if yes does it help in reducing the size of Log file?

Do we need the backup of '.ldf' in phase of Restoring?

 

As I mention my database has Simple Recovery Model, but the size of log file is around 20GB,

Could not understand why as in this Model, normally it automatically truncate the Log file?

 

Help me to clear my these doubts,

 

thanks,
 


 
 

View Replies !   View Related
The Statement BACKUP LOG Is Not Allowed While The Recovery Model
 

Hi All,
 
SQL newbie here. I just looked at my Job Activity monitor and found that my Transaction log backups are failing. I looked at the error and it read as follows:
 
Executing the query "BACKUP LOG [OperationsManager] TO  DISK = N'D:\SQL\MSSQL.1\MSSQL\Backup\OperationsManager\OperationsManager_backup_200805061000.trn' WITH  RETAINDAYS = 1, NOFORMAT, NOINIT,  NAME = N'OperationsManager_backup_20080506100001', SKIP, REWIND, NOUNLOAD,  STATS = 10
" failed with the following error: "The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. Use BACKUP DATABASE or change the recovery model using ALTER DATABASE.
BACKUP LOG is terminating abnormally.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.


I read some of the posts regarding this error, but I am not sure how to do the steps. How do I change the recovery model? I am new to this so I have no clue how to do this.
 
Any help would be greatly appreciated.
 
Thank you.

View Replies !   View Related
Switch Simple To Full Recovery Model
I have convert all databases to Full from Simple Recovery model.

As per documentation, it looks like simple.

Based on your experiences , do you think of any problem may come while doing this  ?

Any impact on application performance after this ?

Is this work perferened to do when no body using system ?

 

Thanks

View Replies !   View Related
Switched To Simple Recovery Model When Will The Transaction Log Shrink?
My trancaction log is 25GB and my database file is 39GB. I justswitched to the 'Simple' recovery model from the 'Full' recovery model.When if ever can I expect the size of the transaction log to reduce insize? Is there anything else that I should do to aide with thereduction?Thanks,Peter

View Replies !   View Related
Will Rebooting The SQLServer 2000,Is It Change Recovery Model Of MSDB Database
Hi All
 
Will Rebooting the SQLServer 2000,Is it change recovery model of MSDB Database
 Please help...

View Replies !   View Related
Log Shipping - Switching Recovery Model In Log Shipping
Hi

 

 

I could not able to find Forums in regards to 'Log Shipping' thats why posting this question in here. Appriciate if someone can provide me answers depends on their experience.

Can we switch database recovery model when log shipping is turned on ?

We want to switch from Full Recovery to Bulk Logged Recovery to make sure Bulk Insert operations during the after hours load process will have some performance gain.

Is there any possibility of loosing data ?

 

Thanks

 

View Replies !   View Related
Report Model Deployment : The Model ID Of The Submitted Model Must Match That Of The
Running 2005 Beta 3 Refresh.  When I first deploy, it works fine. Subsequent deployments yield the following error:

View Replies !   View Related
&&"Simple&&" Or &&"Bulk Logged&&" Recovery Model For Fastest Import ?
We have a  sql 2005 x64 database (datawarehouse related), essentially a work area for us, that we truncate and re-populate via BCP weekly.  (We don't backup the database at all) .  From the perspective of data-import speed what is the best recovery model to use: Bulk-Logged or Simple? (I have read sql 2005 BOL and don't find it partcularly clear on this point.)

Barkingdog

P.S. Anyone know of an article listing "best practices" for high-speed data import?

 

View Replies !   View Related
MS Time Series - Quick To Process The Model But Takes Very Long Time To Open Mining Model Viewer
Hi all,

I have MS Time Seeries model using a database of over a thousand products each of which has hundreds of cases. It amazingly takes only a few minutes to finish processing the model, but when I click Mining Model Viewer to view the models, it takes many hours to show up. Once the window is open, I can choose model for different products almost instantly. Is this normal?

View Replies !   View Related
Connected Model Vs. Disconnected Model
hi !!i have a question about the connected and disconnected model to access the Sql server DB.......i know that there is better to choose one rather than the other in some situantions and there is no better model in all cases...... os i hope you can help me to decide what shall i choose...i will use the DB to connect to Web services and read data from the DB and wrtie some data back.......i do not know that to use ..... i hope you advise me and tell me about the rules that will allow me to choose  what model to choose .... i appreciate your help!!Thanks !!!

View Replies !   View Related
Data Recovery SOURCE CODE ( SOURCE CODES Of Professional Data Recovery Software )
Hi,I am a Data Recovery Specialist and Professional Data RecoverySoftware Developer in New Delhi.I've placed the Complete SOURCE CODE of One of my Data RecoverySoftware for Sale (for Educational Purpose) on the following link ofmy website:http://www.datadoctor.biz/3.htmI'd like to inform you that I am the author of World's First Book onProfessional Data Recovery Programming titled, "Data Recovery with &without Programming". You can see the contents of the book onfollowing link of my website:http://www.datadoctor.biz/author.htmI also have many other Professional software with Source codesavailable for sale. However, I've not listed them on my website.If you've any Query or comments Please Feel Free to mail me,Looking for your response,Regards,Tarun Tyagi,J-110, Patel Nagar - 1,Ghaziabad (U.P.), India - 201001Phone: (+91)9868337762(+91)9810191117(+91)9350190934e-mail: Join Bytes!http://www.DataDoctor.biz

View Replies !   View Related
Error While Trying To Load The Mining Model In The Mining Model Viewer
I get the following error when I try to load the mining model in the mining model viewer

Query (1, 6) The '[System].[Microsoft].[AnalysisServices].[System].[DataMining].[NeuralNet].[GetAttributeValues]' function does not exist.

I get a similar error when I try to load the Load Mining Accuracy Chart

Failed to execute the query due to the following error:

Query (1, 6) The '[System].[Microsoft].[AnalysisServices].[System].[DataMining].[AllOther].[GenerateLiftTableUsingDatasource]' function does not exist.

I have OWC 11 installed. What am I missing here?

Thanks

 

View Replies !   View Related
SQL DB Recovery
Please help!

Windows Server 2003 SE
SQL 2000 w/ 4
Veritas Netbackup 5.1 w/ MP5 (for backup/recovery)

Sometimes, not always, when I attempt to recovery a database I will follow the process of restoring the DB and it will complete with a status of successful. However when I attempt to view the DB in Enterprise Manager it states (loading) next to the DB - and never finishes.

As I said, this doesn't happen all the time, but of course when it happens I only know to start over, rebuild everything and go through the recovery process again. I am sure this is something simple.

I apologize for my lack of knowledge in regards to SQL.

Any insight greatly appreciated.
Thanks,
Kerry

View Replies !   View Related
Recovery..
hi.. how do i create a log entries with checkpoint for each transaction when accessing and updating the database?
i want to recover the data if in case of emergency....

also how do i check whether it has emergency during my project testing? haha.. i got an idea of switching of the electricity.. hahaha how should i do actually?

View Replies !   View Related
DTS Recovery
I have removed a SQL Server 2000 installation, as need to re-install the OS also backed up the whole "Microsoft SQL Server 2000" folder that contains all the MDF and LDF files of the DBs.




Now i also had some DTS packages there but now when i have re-installed the whole setup; i could not get the DTS packages. Is there anyway to recover the DTS as i have the whole folder that contains the SQL Server information. DBs are attached again but only the DTS are left. There must be some place where SQL Server stores this information.




Can anyone please help me out as its so urgent for my work.

Thanks!

View Replies !   View Related
Recovery
Hi,
I want to drop my emp table.Is it possible to get back my emp table?
If possible pls give me the commands.
or give some useful website address
 
 
 

View Replies !   View Related
In Recovery?
After a crash while running a query, the database now has (In Recovery) next to its name and is totally unaccessible. How long does this is last? Is there something I should do about it or do I just wait?

View Replies !   View Related
Disaster Recovery
Hello,

I have a problem. I am trying to set up a disaster recovery plan and have ran into some problems. Just so you are aware, we have tried setting up replication but it failed since the database does not have primary keys(don't ask--I have no control) and we have tried to set up log shipping but we do not have the Enterprise version of SQL server so that won't work. The database is over 200GB so shipping by tape or transferring full backups across the wire is impractical. So basically my question is - "What other options can we explore for setting up disaster recovery that do not involve 'substantial' expenditures?"

There is a direct connection set up between the off site data store.

Thanks

View Replies !   View Related

Copyright © 2005-08 www.BigResource.com, All rights reserved