IT247,
Okay. In order.
IT247 said:
1)In enterprise mgr (EM) when i right click the db name and do "backup DB", what default options are used. What I mean is that when I look at setting up a maint plan, there are several options one can play around with.
When you do a backup DB from EM, it also has several options on it. Use Books Online, the Index tab, and type in BACKUP. There are a number of different backup options and what you do with them entirely depends on your business needs. The two most commonly used types are Transaction Log Backups and Full/Complete Database Backups. With a small database (Q#2), it's doubtful you will need an Incremental or Differential backup.
IT247 said:
2)We have a small DB - does it pay to set up a maint plan?
why not just do a "backup db" - full backup.
Do you really want to spend 10-15 minutes every day doing a manual backup of your DB? Personally, I have other issues to deal with that I need that extra time, so I have our backups scheduled. Also, you need to verify with your customers how much data they can stand to lose if the DB goes down. If they need Point In Time restores, you have to add transaction backups to your maint. plan or you are in serious trouble when the server crashes.
IT247 said:
3)how would i use tsl to schedule that?
Use BOOKS Online (BOL) and search for BACKUP. It has all the T-SQL you want. Also, check the FAQ section for this forum and for the Microsoft SQL Server: Programming forum.
You can schedule a job to run T-SQL code and put the backup code in there if you don't want to use an official db maintenence plan. My answer to #2 is meant to cover either the official DBMP or the use of a scheduled T-SQL job. The tool is up to you.
IT247 said:
4)can such a backup be done even when data is being accessed by users?
It can and if your database really is small, you probably won't notice a performance hit. However, the larger a DB gets, the more likely you'll want to do the backup in the off hours just so things don't get slowed down. Also, there is a locking issue sometimes with SQL that could prevent your backup from completing correctly when users are on the DB. Alter Database commands could cause the backup to fail, for instance.
Hope this helps.
Catadmin - MCDBA, MCSA
"No, no. Yes. No, I tried that. Yes, both ways. No, I don't know. No again. Are there any more questions?"
-- Xena, "Been There, Done That"