Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have installed sql server 2012 edition but once connect to server applet comes . there are some options server type, server name authentication,userid and password.
when i entered my PC name which is local server name then it gives me an error and i am not able to unlock my sql server 2012.

during the installation there were two options for authentication one was default and second was mixed mood.unfortunately i had selected mixed mood. after that this error continue coming again and again.

when i tried to solve this problem . i did uninstall setup files from the control panel and again run the setup . when i am not able to get the default and mixed mood authentication options again then set up direct goes to the error options.

What I have tried:

i removed setup files from the control panel and restart my PC and then same problem are coming again
Posted
Updated 11-Mar-16 19:03pm
Comments
dan!sh 11-Mar-16 6:53am    
Are you connecting using windows authentication or SQL authentication? What is the error you get when you try to login?

1 solution

If you enter your PC name, you have to also add the name of the SQL server instance:
C#
MYPCNAME/SQLEXPRESS
For example.
Otherwise you may get away with (localhost) but that's not a good idea for release code, as it means each PC needs it's own instalation of SQL Server, and that will cause immense problems!

Have a look here: SQL Server 2012 connection strings - ConnectionStrings.com[^] - it gives examples of what your connection string should look like, and explains why.
 
Share this answer
 
Comments
faizyab 2009 11-Mar-16 14:30pm    
Sir i tried this like mypcname/SQLEXPRESS. but problem did not solve?
OriginalGriff 11-Mar-16 14:37pm    
And is SQLEXPRESS THE name of your SQL instance?
What does SSMS say?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900