简体   繁体   English

如何从网络计算机上备份SQL Server 2012数据库

[英]How to take backup of sql server 2012 database from network computer

I'm using sql server 2012 and windows server 2008 R2 on my server machine. 我在服务器计算机上使用sql server 2012和Windows Server 2008 R2。 And windows-7 and sql server 2012 on network computers. 以及Windows 7和sql server 2012网络计算机上。 I were made a user for sql server 2012 (server machine). 我已成为sql server 2012(服务器计算机)的用户。 From that user i am able to connect with the database server from remote computer. 通过该用户,我可以从远程计算机连接数据库服务器。 Now i need to take backup of any database from network computer using this user(Sql server authentication). 现在,我需要使用此用户(Sql服务器身份验证)从网络计算机上备份任何数据库。

Query for backup 查询备份

Backup database hwbss to disk = '\\Dpc1\\SqlBackup\\hwbss.bak'; 将数据库hwbss备份到磁盘='\\ Dpc1 \\ SqlBackup \\ hwbss.bak';

When i run this query on both machine server and client.It troughs error. 当我在机器服务器和客户端上都运行此查询时,它会出现错误。

Error message 错误信息

Msg 3201, Level 16, State 1, Line 1
Cannot open backup device '\\ASHISHRATHOR-PC\SqlServerBackup\BSS100_Ashish_BSS.bak'.       
Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.

Can any one tell me how can i take backup of sql server 2012 database from network computer using sql server authentication. 谁能告诉我如何使用sql server身份验证从网络计算机上备份sql server 2012数据库。

Note:- I am able to take backup of database on network in sql server 2005. 注意:-我能够在sql server 2005中对网络上的数据库进行备份。

I think this can be done by using Map Network drive. 我认为可以通过使用Map Network驱动器来完成。 You have to create such drive to the remote folder that you want to store the backup. 您必须将这样的驱动器创建到要存储备份的远程文件夹中。 Then you have to give sql server permissions to see the network drive. 然后,您必须授予sql服务器权限才能查看网络驱动器。 Check in task manager which is the account the sql server is running on. 签入任务管理器,该帐户是运行SQL Server的帐户。 You must grant write permission on this account to the network drive(usually it's Network Service). 您必须将此帐户的写入权限授予网络驱动器(通常是网络服务)。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何从一台计算机访问同一网络上的另一台计算机的本地主机服务器 - How to access a localhost server from one computer to another on the same network 如何从 .network 上的另一台计算机克隆本地 Gitlab 服务器上的存储库? - How do I clone a repository on a local Gitlab server from another computer on the network? 从同一网络上的另一台计算机(flask python 服务器)访问本地主机? - Access localhost from another computer on the same network (flask python server)? 从网络中的另一台计算机访问本地GAE SDK服务器 - Accessing local GAE SDK server from another computer in the network 是否可以在MySQL服务器上打开phpMyAdmin并从网络中的任何计算机上使用它? - It is possible to open phpMyAdmin on a MySQL Server and use it from any computer in a network? 如何通过端口将SQL查询发送到网络之外的计算机? - How to send SQL queries to a computer outside of the network through port? 如何在本地网络上找到另一台计算机或服务器的公共IP? - How to find the public ip of another computer or server on my local network? 如何从连接到同一网络的另一台计算机打开 React CRA? - How to open a react CRA from another computer connected to the same network? 通过LAN访问Sql Server时计算机/应用程序出现问题并且变慢,网络还可以 - Computer/Application having trouble and getting slow while accessing Sql server through LAN, Network is fine SQL Server 2012远程连接给出Timeout和ASYNC_NETWORK_IO错误 - SQL Server 2012 Remote connection giving Timeout and ASYNC_NETWORK_IO errors
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM