SQL Server Management Studio can be used to create a database backup job to backup an user database. Here are the steps and User interface workflow to create a simple backup job, run the job and view results
-- Create Demo Database
CREATE DATABASE DemoDB
GO
USE DemoDB
-- Create a table
CREATE TABLE TestData(id int)
-- Insert sample data
INSERT INTO TestData(id) VALUES(1)
INSERT INTO TestData(id) VALUES(2)
SELECT * from DemoDB.dbo.TestData
In Object Explorer, Connect to SQL Server, Expand “SQL Server Agent” node, Expand Jobs; right click ; select menu “New Job”
-- Script to backup database
BACKUP DATABASE [DemoDB]
TO DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\DemoDB.bak'
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified athttp://www.microsoft.com/info/cpyright.htm
That is very helpfu for a new user. Thank you very much
Thanks
Hi!!!
I need this tutotial...
Thank you very much!!!
Like this
Useful
why do u need to hide ur servername? how we can reach it :lol:
u forget to hide at first pic.
and the last word. ur server name is REDMOND and u will be HACKED :)))
good tutorial ty
very... very ... Help full...thanks
Thank Dear. thats very usefull for bigner
thanks....so nice
Thank you!
Thank you ,but I found all backup files are saved to xxx.bak folder can't be openned.so I want to delete the older backup files,how to do?