简体   繁体   English

为什么sql server没有获得在应用程序安装过程中安装的管理员权限?

[英]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.

相关问题 如何正确检查我的机器上安装了 MS SQL 服务器版本的 Inno Setup? - How to properly check in Inno Setup which MS SQL Server version is installed on my machine? 如何编写 SQL 查询以找出在 Sql Server 2005 中哪些登录已被授予哪些权限? - How to write an SQL query to find out which logins have been granted which rights in Sql Server 2005? SQL Server 2005 - 用户权限 - SQL server 2005 - user rights 返回在where子句中找不到且未在sql中更新的数据 - Returning data which is not found in where clause and didn't update in sql 是否有可能知道哪个SQL WHERE子句不匹配? - Is it possible to know which SQL WHERE clause didn't match? SQL SERVER'Contains'没有返回实际结果 - SQL SERVER 'Contains' didn't return the actual result Sql查询没有得到正确的付款方式 - Sql query didn't get proper payment method 在Visual Studio中创建安装文件时,为什么不能连接到SQL Server数据库? - Why can't I connect to the SQL Server database when I create setup file in Visual studio? 需要在使用sqlcmd的linux机器上运行shell脚本但是机器没有安装SQL Server 2008? - Need to run shell script on linux machine which uses sqlcmd but machine doesn't have SQL Server 2008 installed? 比较SQL Server上两个用户的权限 - Compare rights of two users on SQL Server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM