您的位置:首页 > 理论基础 > 计算机网络

sql server for 使用网络路径创建数据库

2016-12-14 13:53 381 查看
sp_configure 'show advanced options',1
reconfigure
go
sp_configure 'xp_cmdshell',1
reconfigure
go

------net Driver
----------net use [挂载盘符] [目标网络位置] [pwd] /user:[username]
exec xp_cmdshell 'net use Z: \\192.168.200.45\user96 user96 /user:user96  '
go

------nfs
--------------  mount [网络位置] [挂载盘符]
--exec xp_cmdshell 'mount \\192.168.200.45\data2\nfs Y:'
--go

sp_configure 'xp_cmdshell',0
reconfigure
go
sp_configure 'show advanced options',0
reconfigure
go
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  数据库