SQL Server Rights Management and backup instances

Source: Internet
Author: User

Permission settings:

1, create the user Zhangsan, and give Zhangsan have dbcreator server permissions.

2. Log in using Zhangsan to test if you can create a database.

3. Use the SA user to attach the MySchool database and set Zhangsan to execute the SELECT statement to query the table data in the database. and set the Zhangsan user to be able to delete data from the student table.

4. Use Zhangsan login to test permissions.

Backup and Restore:

1. Verify point-in-time restore (full backup + transaction log backup)

Idea: Create a database Benet, and then create a table stu. Do a full backup first, then write the data to the file, write one line at a time, and then do a thing log backup to restore to a certain point.

2. Tail Backup

Idea: Build a database ACCP, and then create a Stu table. Make a full backup first, then write the data to the file, but do not back up, then stop the SQL Server service, stop and delete the Accp.mdf master database file, open the service, make a tail backup, and restore (the data that was not backed up back).

3. Create a database maintenance plan a full backup of the BDQN database every Sunday 22:00, and a transaction log backup of the database every day from 12:00 and 18:00. Modify the system time to verify the backup effect.

First, permission settings:

1, create the user Zhangsan, and give Zhangsan have dbcreator server permissions.

2. Log in using Zhangsan to test if you can create a database.

3. Use the SA user to attach the MySchool database and set Zhangsan to execute the SELECT statement to query the table data in the database. and set the Zhangsan user to be able to delete data from the student table.

4. Use Zhangsan login to test permissions.

Second, backup and restore:

1. Verify point-in-time restore (full backup + transaction log backup)

Idea: Create a database Benet, and then create a table stu. Do a full backup first, then write the data to the file, write one line at a time, and then do a thing log backup to restore to a certain point.

2. Tail Backup

Idea: Build a database ACCP, and then create a Stu table. Make a full backup first, then write the data to the file, but do not back up, then stop the SQL Server service, stop and delete the Accp.mdf master database file, open the service, make a tail backup, and restore (the data that was not backed up back).

3. Create a database maintenance plan a full backup of the BDQN database every Sunday 22:00, and a transaction log backup of the database every day from 12:00 and 18:00. Modify the system time to verify the backup effect.

Article reference public number: L Baby talk IIT

SQL Server Rights Management and backup instances

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.