Here is one of the most popular questions I often see people asking on the internet.
Question: What is the best recovery model for my database?
Answer: Every situation is different and each situation has different needs for the recovery model.
SQL Server offers three recovery models: full recovery, simple recovery and bulk-logged recovery. The recovery models determine how much data loss is acceptable and determines whether and how transaction logs can be backed up.
Select Simple Recovery Model if:
* Your data is not critical.
* Losing all transactions since the last full or differential backup is not an issue.
* Data is derived from other data sources and is easily recreated.
* Data is static and does not change often.
-- Set the recovery model to Simple
ALTER DATABASE Advetureworks SET RECOVERY SIMPLE
Select Bulk-Logged Recovery Model if:
* Data is critical, but logging large data loads bogs down the system.
* Most bulk operations are done off hours and do not interfere with normal transaction processing.
* You need to be able to recover to a point in time.
-- Set the recovery model to Bulk Logged
ALTER DATABASE Advetureworks SET RECOVERY BULK_LOGGED
Select Full Recovery Model if:
* Data is critical and no data can be lost.
* You always need the ability to do a point-in-time recovery.
* Bulk-logged activities are intermixed with normal transaction processing.
* You are using replication and need the ability to resynchronize all databases involved in replication to a specific point in time.
-- Set the recovery model to Full
ALTER DATABASE Advetureworks SET RECOVERY FULL
You can switch from any recovery model to another recovery model, but prior to or after the switch, you may need to issue additional transaction log or full backups to ensure you have a complete backup set.
Reference: Pinal Dave (https://blog.sqlauthority.com)
i have question ?
how i can separating the number to 3 number when i type the number in text box like 2400000 change to 2,400,000 .
i do some way like this. but not work.
say some way.
It would be a Java script validation or function to do it. Are you planning to do it at the backend? I would suggest not doing it at the backend.