Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to open sql database on different computer with different sql express

Posted on 2013-05-21
4
283 Views
Last Modified: 2013-05-22
A client of mine was running a software package called Console Gateway that used a SQL express 2008 r2 database and the server's mainboard died.

I've installed a new server that is 64-bit and have installed SQL express 2008 R2 64-bit.  And have copied across all of the important data from the old hard drive.
How can I open/attach the database (I have the entire directory it resides in) on this server to use with the Console Gateway software?

I'm not too familiar with Microsoft SQL...
0
Comment
Question by:Reece Dodds
  • 2
4 Comments
 
LVL 16

Expert Comment

by:Surendra Nath
ID: 39186459
let us say that your new server is ServerA and the Console Gateway is installed on ServerB.

As long as ServerB is able to ping to ServerA ( open command prompt in serverB and type ping <ip address of ServerA>, if you get recevied packets... then you are able to ping to that server).

If the above condition is satisfied, then you have to change the connection setting in your console gateway, to change it from old server to the new one.
0
 
LVL 7

Author Comment

by:Reece Dodds
ID: 39186623
ServerB has the dead mobo and will not turn on.  Thus the extraction of data from the hard drive to the new server (A).  What I have is the folders full of data, one of which contains the MDF/LDF files.
0
 
LVL 2

Accepted Solution

by:
Psihawk99 earned 500 total points
ID: 39188596
You probably first need to load SQL Management studio on the new server.  Once complete, you should be able to login to the new SQL Express you installed on this box.   Once in, you just need to rightclick on the database folder and choose Attach.   From there a wizard should open up prompting you for the MDF and LDF file names.
0
 
LVL 7

Author Closing Comment

by:Reece Dodds
ID: 39189480
Thanks buddy.

Took a while for the client to locate security credentials. But the database is attached now and I've used the Console software's "new instance" utility to get it running again.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to shrink a transaction log file down to a reasonable size.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question