Link to home
Start Free TrialLog in
Avatar of Karen Schaefer
Karen SchaeferFlag for United States of America

asked on

Sql Server 2012 - local copy can find server

I installed a local copy of SQL 2012 a few months back,  now that I am attempting to connect to the local instance I previously set up I am getting the following error.  Do I need to reinstall the evaluation version? or what am I missing.

User generated image
Thanks,

K
Avatar of dsacker
dsacker
Flag of United States of America image

Is the instance by chance named:  KARENSPLACE\EXPRESS?

In a command point, type: SQLCMD -L

Is your instance anywhere in that list?
Avatar of Karen Schaefer

ASKER

it returned no results
Open up regedit.exe ... look in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\Instance Names\SQL

See if you can find what you'd expect there. If you can't, then it was deleted on that computer.
how do i create a new connection - I am new to this.
That registry entry (above in my last post) was for the 32-bit. Look in:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL
A new connection for what? Or do you mean a new instance?

To create a new instance, just open the installer and follow its instructions.
there is not an instance folder.  Does this mean it got deleted, and if so how do I recreate it.

User generated image
Try using "KARENSPLACE" as the server name when logging in. That's the default instance
Under  MSSQLServer I would expect to see "Instance Names". That means you don't have any instances installed on your computer.

Sure you're not trying to access an instance on some remote computer, or is this strictly from home?
what is an installation folder, where should if be located?  for a local copy.  I installed sql on my local pc.  I currently have two versions 2008 and 2012.

k
strictly home pc for training purposes..

K
Did you try just using server name without instance name??
YZlat,

Tried that and it could find KarensPlace.

K
what is an installation folder, where should if be located?  for a local copy.  I installed sql on my local pc.  I currently have two versions 2008 and 2012.

k
It should be under C:\Program Files\Microsoft SQL Server and further beneath.

Look for files ending in .mdf
Sounds like KARENSPLACE (without the \extra) is what you're looking for.
here is where i am at in the installation process.

User generated image
tried just KarensPlace - see no luck.
User generated image
It should be under C:\Program Files\Microsoft SQL Server and further beneath.

Look for files ending in .mdf

Tried just opening the adventureworks file with mdf - and said server not found.
Well, that looks like KARENSPLACE\KAREN was the instance name.

Can you connect to SQL Server using the SA login id? When you installed it would have asked you for a password.
Can you connect to SQL Server using the SA login id? When you installed it would have asked you for a password.

Don't Remember - I installed the sql several months back.
tried sa login - still errors out.
User generated image
Seeing MSSQL$KAREN verifies that you created an instance called KARENSPLACE\KAREN.

Can you make sure the MSSQL service is started? Look at your Services (under Control Panel, Administrative).
I am using Windows 8 and I do not see the folder in question.
In the search, type Services. Open it up that way.
found services folder,

here is the results.  which one should I be using.User generated image
ASKER CERTIFIED SOLUTION
Avatar of dsacker
dsacker
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
unforunately I don't remember the admin password and when I try the local still won't open from the sql studio.

how do I create a new instance?
nevermind i closed down management studio and open the server again and it seems to have worked.  Thanks for all your time and effort and patience.
thanks for the great assist.
Very welcome. Glad that worked. One final thing: Set that service to "Automatic", so that it starts up whenever you reboot your computer.

All the best.
Turns out I was wrong don't have it fixed - the database Engine I was connecting to was 2008 version, and when I try to connect to the 2012. I unable to make a connection.  I hate to ask but still need your assistance.

I have two version so sql server installed and it can get confusing.  I reset the services for the 2012 versions and made sure they were all set to Lccal w/o password, including the SQL Agent as a dependent.

User generated image
Start up the other service that says SQL Server (MSSQLSERVER). See if you can connect to either KARENSPLACE\KAREN or KARENSPLACE afterward.
SQL Server (MSSQLSERVER) is the wrong version of Sql Server

MSSQL10_50.MSSQLSERVER.

Should I clear all these out and start fresh by reinstalling the correct version or is there a way to edit the installation process to point at the correct version?

Thanks,

K
Yes, that probably would be best. I'd uninstall every version of SQL Server you have and start fresh. SQL Server 2012 at the least. If you're adventuresome, you can install 2014. It's free (the express version).

Don't forget to note and save your SA password. :)