简体   繁体   English

SQL Server Management Studio Express

[英]SQL server management studio Express

I authenicate to my SQL Server instance by logging in with a Windows account via SQL Server Management Studio. 我通过SQL Server Management Studio使用Windows帐户登录来认证我的SQL Server实例。 I want to change this to a SQL server login. 我想将其更改为SQL Server登录名。

How can I do that? 我怎样才能做到这一点?

The default installation of SQL Server only supports Windows Authentication. SQL Server的默认安装仅支持Windows身份验证。

If you want to use SQL authentication (eg "sa" for the superuser), you need to: 如果要使用SQL身份验证(例如,超级用户使用“ sa”),则需要:

  1. Using SQL Server Management Studio, connect to the server. 使用SQL Server Management Studio,连接到服务器。 Use Windows Authentication for now. 现在使用Windows身份验证。

  2. Right-click on the server instance you want to modify. 右键单击要修改的服务器实例。 This is usually the root item in the tree in the left-hand panel. 这通常是左侧面板中树中的根项目。

  3. Select Properties from the context menu. 从上下文菜单中选择“属性”。

  4. In the Server Properties window, select Security from the left-hand panel. 在“服务器属性”窗口中,从左侧面板中选择“安全性”。

  5. Under Server Authentication, change the radio button from "Windows Authentication mode" (the default), to "SQL Server and Windows Authentiation mode". 在“服务器身份验证”下,将单选按钮从“ Windows身份验证模式”(默认)更改为“ SQL Server和Windows身份验证模式”。

Now you can create SQL server logins which you can use to connect to the server. 现在,您可以创建可用于连接到服务器的SQL Server登录名。

When you first open Management Studio it asks you what credentials you wish to use to login. 首次打开Management Studio时,它会询问您希望使用什么凭据来登录。

For an actively connected session you need to change the current connection using the button on the tool bar (normally top left) which will pop up the login dialogue again. 对于活动连接的会话,您需要使用工具栏上的按钮(通常为左上角)更改当前连接,这将再次弹出登录对话框。

Clearly this will depend on you having some SQL Server logins already defined on the server with appropriate permissions specified. 显然,这将取决于您是否已经在服务器上定义了一些SQL Server登录名并指定了适当的权限。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM