Creating/Accessing new database - authentication

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

Related

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.

SQL server management studio Express

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.

Visual Studio 2005 SQL Server Express edition username pass

Visual Studio 2005 I connect with SQL Server Express edition with SQL Server Management Studio Express using Windows authentication.
When I installed Visual Studio 2005 I didn't get asked for SQL Server Express edition user name or password. How can I connect without Windows authentication?
You will have to:
connect through Management Studio Express with windows authentication
in the Object Explorer pane, expand the Security folder
Right click on the Logins folder and choose New Login.
You can then configure a new user, password, and grant privileges.
Go to the File Menu and select "Connect Object Explorer..."
Install the latest SP for Express and this will add the user provisioning for Vista that will make you an administrator on the Express instance. Otherwise you'll have to do it the hard way, see Troubleshooting: Connecting to SQL Server When System Administrators Are Locked Out.
Once you fix your administrative privileges back on the instance, you can start adding SQL Logins. You are going to have to enable Mixed Authentication before these logins can be used, see Authentication Mode (SQL Server Express).

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.

SQL Server authentication in SQL Server 2008

I created a login with SQL authentication credential in SQL Server 2008. But, I am not able to login using that credential.
We followed the same steps in SQL Server 2005 and working without any problem.
What could be the problem?
Thanks,
P.Gopalakrishnan.
Have you checked that SQL Server Authentication is enabled? It is disabled by default. From SQL Server Management Studio, right-click your server, Properties, Security, SQL Server and Windows Authentication mode.
have you confirmed that you are logging into the correct instance of sql server on the machine that you created the login for?