SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Cannot access default instance set up by previous owner of computer


Cannot access default instance set up by previous owner of computer

Author
Message
grantbanjo
grantbanjo
SSC-Enthusiastic
SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)

Group: General Forum Members
Points: 118 Visits: 170
Hello,
I first ran a search for on the Internet and then on SQL Server Central for this situation, but was unable to find a close match.

I have SQL Server 2008 R2 running on a 64-bit computer using Windows 2008 R2. The previous owner of the computer (who is no longer with the company) set up a default instance <computer name>/SQLEXPRESS under his Windows Authentication. There are no other instances running on this computer, but I am connected to instances on other servers.

What is the best approach for accessing a default instance on this computer? Should I try to hack into this instance via the sa password (http://v-consult.be/2011/05/26/recover-sa-password-microsoft-sql-server-2008-r2/) or remove the default instance and install a new one? I do not think the current default instance contains anything of value. If the default instance needs to be replaced, please provide a link or description with the required steps.

Thanks in advance.
free_mascot
free_mascot
Hall of Fame
Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)Hall of Fame (4K reputation)

Group: General Forum Members
Points: 3973 Visits: 2235
Are you able to connect to the server and database? What access you do have on server and database?

---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
Perry Whittle
Perry Whittle
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19850 Visits: 17242
grantbanjo (2/24/2014)
Hello,
I first ran a search for on the Internet and then on SQL Server Central for this situation, but was unable to find a close match.

I have SQL Server 2008 R2 running on a 64-bit computer using Windows 2008 R2. The previous owner of the computer (who is no longer with the company) set up a default instance <computer name>/SQLEXPRESS under his Windows Authentication. There are no other instances running on this computer, but I am connected to instances on other servers.

What is the best approach for accessing a default instance on this computer? Should I try to hack into this instance via the sa password (http://v-consult.be/2011/05/26/recover-sa-password-microsoft-sql-server-2008-r2/) or remove the default instance and install a new one? I do not think the current default instance contains anything of value. If the default instance needs to be replaced, please provide a link or description with the required steps.

Thanks in advance.

Firstly it's not a default instance it's a named instance. The security permissions for this installation obviously don't grant you any connectivity.
If you don't need the instance or its databases you could uninstall it. If you want to gain access you'll need to start the instance in single user mode and grant yourself access.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
grantbanjo
grantbanjo
SSC-Enthusiastic
SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)SSC-Enthusiastic (118 reputation)

Group: General Forum Members
Points: 118 Visits: 170
My personal desktop computer at work is running Windows 2008 as the OS. When I open SQL Server Management Studio and select Connect > Database Engine, I can connect to other servers and then view their associated databases under Object Explorer.

But when I go to Connect > Database Engine under Object Explorer and apply the only instance available for server name for my local desktop computer, I get the message stating "... the server was not found or was not accessible." I have also tried "Local" and "Localhost" with the same error returned.

My best guess is that it will be easier to reinstall and set up a mixed mode authentication or apply Windows Authentication and grant access to my manager and a couple of others on my team... just in case.

Thanks.
Perry Whittle
Perry Whittle
SSCoach
SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)SSCoach (19K reputation)

Group: General Forum Members
Points: 19850 Visits: 17242
In the connect dialog the instance name should be

Computername\SQLEXPRESS

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Lowell
Lowell
One Orange Chip
One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)One Orange Chip (28K reputation)

Group: General Forum Members
Points: 28080 Visits: 39927
for non clustered instances, these two techniques are working great for me, as long as i have RDP to the machine:


without stopping and starting the services, byusing sysinternals psexec to impersonate NT AUTHORITY\SYSTEM and gain access:
http://sqlblog.com/blogs/argenis_fernandez/archive/2011/07/10/think-your-windows-administrators-don-t-have-access-to-sql-server-2008-by-default-think-again.aspx

using a script prrovided by microsoft, as long as bouncing the services is no problem:
http://archive.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=addselftosqlsysadmin&DownloadId=9198


i've used both, and not had any issues unless the instance was clustered.

Lowell

--
help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search