ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
how to get the automatic backup of the database in the sql
server
 Question Submitted By :: Srinivasa Rao
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how to get the automatic backup of the database in the sql server
Answer
# 1
Through maintanence plan
 
Is This Answer Correct ?    12 Yes 3 No
Guest
 
  Re: how to get the automatic backup of the database in the sql server
Answer
# 2
This how to will show you to how to create a maintenance 
plan that will automatically backup all MS SQL server 2000 
databases at a specified time and will also automatically 
add any new databases you create.

The original instructions were kindly supplied in pseudo 
format by Paul Banks, I've just tidied them up a little 

1 - Open Enterprise Manager on your SQL server machine
2 - Expand the console tree by selecting Microsoft SQL 
servers > SQL Server Group > Your SQL Server > Management
3 - Right click Database Maintenance Plans and select "New 
Maintenance Plan"
4 - When the wizard opens, click Next and select the "All 
Databases" option. Click Next
5 - Skip the next two stages of the wizard by clicking Next 
unless you want to rebuild indexes (Not recommended for a 
large number of databases)
6 - Make sure the options "Back up the database as part of 
a maintenance plan" is checked and also "Verify the 
integrity of the backup when complete"
7 - Set a schedule up for the plan ti run, daily in the 
very early hours is probably best and click Next
8 - Select the location for the backups, either the default 
on somewhere on your server
9 - Check the option for "Create a sub-directory for each 
database"
10 - Set the length of time that you wish to retain backups
11 - Leave the extension as BAK and click Next
12 - There's no real need to backup the transaction logs 
unless you want to at the next stage so click Next
13 - Check the option to Write a report to a text file as 
this is handy for diagnosing any problems with the plan and 
set the retention time for the logs. Click Next.
14 - You can write the history to a DB table but this is 
not necessary, click Next
15 - Check the summary, give the maintenance plan a name 
and click Finish

At this stage you may get a warning about the SQL Server 
Agent not running. If you do, click OK to clear the 
message, right click SQL Server Agent and click Start.

NB: SQL Server Agent is set-up as a manual starting service 
so you may want to go to Start > Run > services.msc, select 
the SQLSERVERAGENT service and change the start up mode to 
Automatic.

Now that you have created your maintenance plan, it's a 
good idea to check it actually works so select Jobs below 
SQL Server agent.

You should see the plan you have created so just right 
click the job and select Start Job. The maintenance plan 
should then run and finish with Succeeded under the Last 
Run Status column.

Finally browse to the location you chose in step 8 and 
check that you have a sub directory for each database and a 
BAK file for the database backup.

And that's it! You are now backing up all your databases 
and including new ones as they area created. You should now 
include this folder as part opf your normal disk backup...
 
Is This Answer Correct ?    32 Yes 3 No
Suhail Qaiser
 
 
 
  Re: how to get the automatic backup of the database in the sql server
Answer
# 3
Open the sql server query analysiser

To Type The following query

Backup DataBase <DataBaseName>
To Disk ='Server path'
 
Is This Answer Correct ?    6 Yes 7 No
Kumar.t
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What is referential integrity and how is it achieved? Adea-Solutions1
how to change column into row in sql ESS2
internal language used in sql server 2000?  1
Explain Different types of Projects?  1
How to Check Whether a Global Temporary Exists in a SQL Database or not?  2
what is Archive old data?  1
Let us say the SQL Server crashed and you are rebuilding the databases including the master database what procedure to you follow?  2
How to get the count of distinct records. Please give me the query? Value-Labs5
Which databases are part of SQL server default installation? Explain the usage of each? Accenture2
PC(code, model, speed, ram, hd, cd, price) Find the hard drive sizes that are equal among two or more PCs. APX2
i have 4 tables.. T1, T2, T3, T4.. these tables have the same structure and they store the information entered in different years.. T1 stored 2002, T2 stored 2003, T3 stored 2004 and T4 stored 2005.. i want to copy contents in T1 to T2, T2 to T3, T3 to T4 and T4 to T1.. how do i do that? Temp tables cannot be used..  2
What is indexed views? plz explain with example?  1
How are SQL Server databases physically stored under Windows 2000?  1
How can u convert the Date to String? TCS4
can anybody tell us, how to select 2nd max salary from table. my id is ashish.akk@gmail.com Symphony21
What is the difference between UNION and UNIONALL? CTS2
can any one please send sql quries most used in applications.  1
Please give me the SP for the below scenario. I have two tables named Table1 and Table2...I need to fetch record by record from Table1 and insert the record in to table2 where the value in the sno column of the table1 is even number. Value-Labs4
What is difference between Triggers and store procedure?  2
As a part of your job, what are the DBCC commands that you commonly use for database maintenance? HCL1
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com