SQL server management studio Express - sql

I authenicate to my SQL Server instance by logging in with a Windows account via SQL Server Management Studio. I want to change this to a SQL server login.
How can I do that?

The default installation of SQL Server only supports Windows Authentication.
If you want to use SQL authentication (e.g. "sa" for the superuser), you need to:
Using SQL Server Management Studio, connect to the server. Use Windows Authentication for now.
Right-click on the server instance you want to modify. This is usually the root item in the tree in the left-hand panel.
Select Properties from the context menu.
In the Server Properties window, select Security from the left-hand panel.
Under Server Authentication, change the radio button from "Windows Authentication mode" (the default), to "SQL Server and Windows Authentiation mode".
Now you can create SQL server logins which you can use to connect to the server.

When you first open Management Studio it asks you what credentials you wish to use to login.
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.

Related

New user cannot log-in (SQL Server)

I created a SQL user "myUser" within the Security > Logins section in SSMS. I created it as "SQL Server Auth" and granted all permissions. This user still cannot sign into sql.
Server Auth is set to "Mixed" (SQL and Win auth mode)
Please check if you set the authentication mode to mixed mode or not. If not then:
To enable mixed mode Authentication in Microsoft SQL Server please follow the steps below.
To change security authentication mode to mixed mode
In SQL Server Management Studio Object Explorer, right-click the server, and then click Properties.
On the Security page, under Server authentication, select SQL Server and Windows Authentication mode, and then click OK.
In the SQL Server Management Studio dialog box, click OK to acknowledge the requirement to restart SQL Server.
To enable the sa login by using Management Studio
In Object Explorer, expand Security, expand Logins, right-click sa, and then click Properties.
On the General page, create and confirm a new highly secure password for the sa login.
On the Status page, in the Login section, click Enabled, and then click OK.
Please look into below link:
Solutions to Microsoft SQL Server Error 18456

How to login to the SQLServer with Windows authentication

Actually I have Mac OS X on to which I have installed VirtualBox, which has Windows 7 installed.
In that Windows 7 I installed SQLServer 2012.
I can't log in to SQLServer. Could this setup prevent me from authenticating with SQLServer?
To enable Windows Authentication on SQL Server
Start SQL Server Management Studio and in the Connect to Server dialog box, specify a SQL Server name and administrator credentials to connect to the server.
In Object Explorer, expand the SQL Server.
Expand Security, right-click Logins, and then click New Login.
In the Login – New window, for the Login name text box, specify the Windows user name in the format domain\username.
In the left pane, click User Mapping. In the right pane, select a database to associate with the user. In the Database role membership for box, select the db_owner check box.
Click OK.

How to connect in sql management studio 2008

I have installed the Sql server 2008 express edition with tools. After Installing sql server 2008 and sql server management studio. When i open the sql management studio it shows a window, Connect to server. Here I got already filled boxes like that:
Server type: Database Engine
Sever name: (local)
Authentication: Windows Authentication
When i click on the Connect button it displays an error message box, and nothing will be created. What can i do. Would someone help me to fix it.
Open run--> CMD
execute this code : NET START MSSQLSERVER for default instance and NET START MSSQL$<INSTANCENAME> for named instance.
I agree with user2196728, you should be able to connect using the SA account specified during installation. At that point you should be able to setup an account using your domain account (windows authentication)
Confirm that this is turned to on (2008R2):
Click on the Start Menu.
Go to the folder Microsoft SQL Server 2008 R2
Click on the folder Configuration Tools
Launch SQL Server Configuration Manager
When that loads, on the far left menu, click on SQL Server Services
You should see at least three items on the right window, probably SQL Server (SQLEXPRESS), SQL Server Agent (SQLEXPRESS), and SQL Server Browser. Right click on SQL Server (SQLEXPRESS) and click Start (if it's highlighted out, that means it's running).
Then try logging into local again using Windows Authentication.

Creating/Accessing new database

I have created a new database in SQL Server 2008 R2 on my local machine.
The problem is that for some reason I CAN'T seem to get the it so I can use SQL Server Authentication. I am only able to log in with Windows Authentication.
Would someone describe the steps so that I can access a database that I created with a newly created account?
This will happen when you do not install SQL Server under Mixed Mode Authentication. To change this:
open SQL Server Management Studio (SSMS)
Right click the server
click Properties
click Security
Under "Server Authentication" select "SQL Server and Windows Authentication mode"
See the docs for complete details:
http://msdn.microsoft.com/en-us/library/ms188670(v=sql.105).aspx

Sql Server Management Studio Express

how do i convert my sql server management studio express to server authentication mode.. please help regarding this..
I assume you mean SQL or Mixed-mode Authentication (the ability to login using your SA account). Follow the instructions in this link.
You should be able to connect to it as normal via whatever method you already have (this requires sufficient Admin permissions).
Then to enable access via SQL Logins you can
Right click on the instance name in Management Studio (mine is localhost\SQLEXPRESS (SQLServer 10.0.1600)).
Go to the Security tab.
Then you should be able to enable SQL Logins by clicking SQL Server and Windows Authentication Mode.
Click ok and you're done!
You can now add SQL Logins as connect via them as you would normally.