利用磁盘映射SqlServer远程备份到另一台机器
2015-09-21 15:23
393 查看
1.打开xp_cmdshell
EXEC sp_configure'show advanced options', 1
GO
-- To updatethe currently configured value for advanced options.
RECONFIGURE
GO
-- To enablethe feature.
EXEC sp_configure'xp_cmdshell', 1
GO
-- To updatethe currently configured value for this feature.
RECONFIGURE
GO
-- To disallowadvanced options to be changed.
EXEC sp_configure'show advanced options', 0
GO
-- To updatethe currently configured value for advanced options.
RECONFIGURE
GO
2.
exec master..xp_cmdshell'net use z:
\\远程IP\ 远程共享目录"用户密码" /user:
user:远程IP \Administrator'
3.建立维护计划任务可以选用磁盘映射 若没有执行前两步,在选择磁盘时则找不到远程共享目录
建立备份
--如果要禁用,
-- To allow advanced options to bechanged.
EXEC sp_configure'show advanced options',1
GO
-- To update the currently configuredvalue for advanced options.
RECONFIGURE
GO
-- To disable the feature.
EXEC sp_configure'xp_cmdshell', 0
GO
-- To update the currently configured valuefor this feature.
RECONFIGURE
GO
-- To disallow advanced options to bechanged.
EXEC sp_configure'show advanced options',0
GO
-- To update the currently configuredvalue for advanced options.
RECONFIGURE
GO
EXEC sp_configure'show advanced options', 1
GO
-- To updatethe currently configured value for advanced options.
RECONFIGURE
GO
-- To enablethe feature.
EXEC sp_configure'xp_cmdshell', 1
GO
-- To updatethe currently configured value for this feature.
RECONFIGURE
GO
-- To disallowadvanced options to be changed.
EXEC sp_configure'show advanced options', 0
GO
-- To updatethe currently configured value for advanced options.
RECONFIGURE
GO
2.
exec master..xp_cmdshell'net use z:
\\远程IP\ 远程共享目录"用户密码" /user:
user:远程IP \Administrator'
3.建立维护计划任务可以选用磁盘映射 若没有执行前两步,在选择磁盘时则找不到远程共享目录
建立备份
--如果要禁用,
-- To allow advanced options to bechanged.
EXEC sp_configure'show advanced options',1
GO
-- To update the currently configuredvalue for advanced options.
RECONFIGURE
GO
-- To disable the feature.
EXEC sp_configure'xp_cmdshell', 0
GO
-- To update the currently configured valuefor this feature.
RECONFIGURE
GO
-- To disallow advanced options to bechanged.
EXEC sp_configure'show advanced options',0
GO
-- To update the currently configuredvalue for advanced options.
RECONFIGURE
GO
相关文章推荐
- JDBC程序访问数据库的步骤
- MySQL5.6安装步骤(windows7/8_64位)
- MySQL vs ElasticSearch vs MongoDB
- innodb_flush_method的性能差异与File I/O
- ArcSDE数据库连接(直连、服务连)与GT_Geometry存储配置图解
- SQLite使用
- 消息 xxx,级别 16,状态 x,过程 sp_executesql,第 x 行 过程需要类型为 'ntext/nchar/nvarchar' 的参数 '@statement'。
- mysql的安装配置
- 谈谈我对sku的理解(3)----页面效果
- NoSQL数据库的四大分类及分析
- 使用rman备份异机恢复数据库
- 谈谈我对sku的理解(2)----数据库设计
- 数据库group by 用法
- 谈谈我对sku的理解(2)----数据库设计
- 谈谈我对sku的理解(2)----数据库设计
- 小小的数据库讲解
- mysql for visual
- SQL SERVER 字符串常用函数
- Ubuntu15下mysql5.6.25不支持中文的解决办法
- oracle数据库中 经常容易出错的几个小细节