Microsoft SQL Server Management Studio -- Restore database in a difference server

本文介绍了如何在 SQL Server 中进行数据库备份与恢复的过程,并详细解释了如何启用 SQL Server 身份验证,以及如何配置连接字符串来确保应用程序能够正确地连接到数据库。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Reference :

http://msdn.microsoft.com/en-us/library/ms177429.aspx

http://msdn.microsoft.com/en-us/library/aa337562.aspx

1.Go to the source database server, back up the database, save the backup file to E:\zkoo\chs2_DB.bak

2.copy the backup to destination database server to restore

3.how to enable  SQL server authentication

1) create a new login by choosing SQL Server authentication ,setup password following the rule (8 characters)

 

2)click  "status" to enable the login

3)restart the Database

4)login using SQL Server Authentication , re-input new password (following the rule)

 

4. configuration file :

  <dataConfiguration defaultDatabase="CHS" />
   <connectionStrings>
  <add name="CHS" connectionString="Database=CHS2;Server=XX.XX.XX.XX;User Id=chs2;Pwd=Password1;Connection Timeout=30;"
    providerName="System.Data.SqlClient" />
 </connectionStrings>

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值