[英]Why sql server didn't get administrator rights which was installed during application setup process?
Hello I am building a windows based application. 您好,我正在构建一个基于Windows的应用程序。 I am generating setup with install shield in visual studio.
我正在Visual Studio中使用安装盾生成安装程序。 Now I am adding prerequisites as .net framework 4 client profile and sql server 2008 express.
现在,我要添加.net framework 4客户端配置文件和sql server 2008 Express。 and selecting option of Download prerequisites from the same location as my application.
然后从与我的应用程序相同的位置选择“下载必备软件”选项。
Now when I am installing this app in client's system sql server also installed properly. 现在,当我在客户端系统sql server中安装此应用程序时,也已正确安装。 But when I am running my app.
但是当我运行我的应用程序时。 it stopped working because sql server has no admin rights.
它停止工作,因为sql server没有管理员权限。 What is the solution for it?
有什么解决方案? What I should do that's why sql server have administrator rights.
我应该做的就是sql server拥有管理员权限的原因。 And my app works properly..
而且我的应用程序正常工作。
Thanks in advance. 提前致谢。
Try upgrading your prerequisite to at least SQL Server 2008 R2. 尝试将必备组件至少升级到SQL Server 2008 R2。
SQL Server 2008R2/2012 installer supports /ADDCURRENTUSERASSQLADMIN parameter, set to true by default for Express Edition. SQL Server 2008R2 / 2012安装程序支持/ ADDCURRENTUSERASSQLADMIN参数,对于Express Edition,默认设置为true。
did you have administrator rights when you was installing the sql server? 安装sql服务器时,您是否具有管理员权限? This might help you with the "standard sql server administrator": System Administrator (sa) Login
这可以帮助您使用“标准sql服务器管理员”: 系统管理员(sa)登录
The password for the "sa" user depends on the selected login-mode during the installation. “ sa”用户的密码取决于安装期间选择的登录模式。 Dont worry - you dont have to reinstall your sql server.
不用担心-您不必重新安装sql server。
You are able to change the authentication mode like that . 您可以像这样更改身份验证模式。
After you figured ou the administrator name and the password you should be able to login with your windows app by using the correct login values :) 在确定了管理员名称和密码后,您应该能够使用正确的登录值使用Windows应用程序登录:)
Sincerly, Toby 真诚的托比
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.