由于启动用户实例的进程失败,无法生成SQL Server的用户实例。连接将被关闭。 [英] Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

查看:95
本文介绍了由于启动用户实例的进程失败,无法生成SQL Server的用户实例。连接将被关闭。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我的朋友给了我asp.net c#webapplication与sql server 2008 R2文件,数据文件和日志文件现在我想用我的数据库附加这些文件,我的数据库是相同的(sql server 2008 R2)但是当我尝试附加时我得到此错误(由于启动用户实例的进程失败而无法生成SQL Server的用户实例。连接将被关闭)plz有人可以帮助我来解决这个问题。

Hi everyone, My friend gave me asp.net c# webapplication with sql server 2008 R2 files, data file and log file now i want to attach these files with my database and my data base is same (sql server 2008 R2) but when i try to attach i get this error (Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed ) plz some one can help me to resolve this problem.

推荐答案

检查你的连接字符串:它是否与你的SQL服务器实例和用户访问权限匹配?

一种方法检查是尝试在服务器资源管理器窗格中设置VS中的连接:

1)打开服务器资源管理器。

2)右键单击数据连接并选择添加连接

3)在随后的对话框中,选择您的数据源和数据库,指定安全信息,然后按测试连接按钮。

4)连接工作,按确定

5)在服务器资源管理器窗格中突出显示数据库,然后查看属性窗格。将显示连接字符串的工作示例,您可以将其复制并粘贴到应用程序或配置文件中。或者在您的情况下,与您朋友给您使用的应用程序进行比较。
Check your connection string: does it match your SQL server instance and user access?
One way to check is to try setting up a connection in VS with the Server Explorer pane:
1) Open Server Explorer.
2) Right click "Data connections" and select "Add connection"
3) In the dialog that follows, select your DataSource, and database, specify the security info, and press the "Test connection" button.
4) When the connection works, press "OK"
5) Highlight your database in the Server Explorer pane, and look at the Properties pane. A working example of the connection string will be shown, which you can copy and paste into your app or config file. Or in your case, compare against the one the application your friend gave you is using.


这篇关于由于启动用户实例的进程失败,无法生成SQL Server的用户实例。连接将被关闭。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆