简体   繁体   English

如何将用户添加到SQL Server 2008 Management Studio

[英]How to add users to SQL Server 2008 Management Studio

I am trying to install DotNetNuke CMS. 我正在尝试安装DotNetNuke CMS。 I created a database in my Microsoft SQL Server Management Studio 2008, which I installed after installing Microsoft Visual Studio 2010. I created a login for it and a password but I am not able to log in. 我在安装Microsoft Visual Studio 2010后安装的Microsoft SQL Server Management Studio 2008中创建了一个数据库。我为它创建了一个登录名和一个密码,但我无法登录。

It is giving me SQL login failed 18456. I have tried the post that exist in this site and many different sites but I am not able to log in. 它给了我SQL登录失败18456.我已经尝试了这个站点和许多不同站点中存在的帖子,但我无法登录。

Do I need to update to SQL Server 2008? 我是否需要更新到SQL Server 2008?

Firstly you need to change the type of login to allow sql security login (otherwise you have to start messing with Domain user accounts). 首先,您需要更改登录类型以允许sql安全登录(否则您必须开始搞乱域用户帐户)。

To do this go to servername --> right click 'properties' --> go to security tab on left hand side --> choose 'Sql Server and Windows Authentication mode' 要执行此操作,请转到servername - >右键单击“属性” - >转到左侧的安全选项卡 - >选择“Sql Server和Windows身份验证模式”

Then..... 然后.....

To set up users you need to set them up: 要设置用户,您需要进行设置:

1) as a login 2) as a user in the database. 1)作为登录2)作为数据库中的用户。

To do this go to server name (in Management Studio) --> security --> logins then right click 'new login'. 要执行此操作,请转到服务器名称(在Management Studio中) - >安全性 - >登录,然后右键单击“新登录”。

Then go to databases --> your db --> security --> users --> add user. 然后转到数据库 - >您的数据库 - >安全 - >用户 - >添加用户。

Then you just need to add the user selecting the elipses and adding the user you just created above. 然后,您只需添加用户选择elipses并添加您刚刚创建的用户。

A few things. 一些东西。

One you'll need to verify that the user you created has the ability to log on. 您需要验证您创建的用户是否具有登录功能。 Check the properties inside Sql Server Management Studio. 检查Sql Server Management Studio中的属性。 To do this, connect to the database in SSMS. 为此,请连接到SSMS中的数据库。 Then find the Security folder. 然后找到Security文件夹。 Expand it, and expand the Logins folder. 展开它,然后展开Logins文件夹。 Find the login you are trying to use, right click and choose properties. 找到您要使用的登录名,右键单击并选择属性。

On the left is a tree "General", "Server Roles", "User Mapping", "Securables" and "Status". 左边是树“常规”,“服务器角色”,“用户映射”,“安全”和“状态”。 In status make sure that "Permission to connect to database engine" is set to Grant and Login is enabled. 在状态中,确保将“连接到数据库引擎的权限”设置为“启用”并启用“登录”。

If that is set up that way and you're still having problems, verify that the protocol (either named pipes or TCPIP) is enabled for the server, if this is disabled it will prevent you from making connections from other computers. 如果以这种方式设置并且您仍然遇到问题,请验证是否为服务器启用了协议(命名管道或TCPIP),如果禁用此选项,则会阻止您与其他计算机建立连接。

edit sounds like you don't have mixed mode authentication turned on. 编辑声音,就像您没有打开混合模式身份验证一样。

In SSMS, right click on the server name and go to properties. 在SSMS中,右键单击服务器名称并转到属性。

Go to the "Security" item on the left. 转到左侧的“安全”项。

There are 2 radio buttons at the top: Windows Authentication Mode 顶部有2个单选按钮:Windows身份验证模式

and

SQL Server and Windows Authentication mode. SQL Server和Windows身份验证模式。

You want to check the 2nd button. 你想检查第二个按钮。

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

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