Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 7,2000
»
SQL Server Newbies
»
open existing database
open existing database
Rate Topic
Display Mode
Topic Options
Author
Message
mhh12
mhh12
Posted Sunday, September 06, 2009 4:05 PM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, January 26, 2011 8:11 AM
Points: 17,
Visits: 40
I am trying to use SQL Server Management Studio and bring in an .mdf file that is already listed in
C:\Program Files\Microsoft SQL Server\MSSQL10.SQLEXPRESS\MSSQL\DATA
There are a lot of other .mdf files listed there as well. The only one that appears in Object Explorer under
HKRAM\SQLEXPRESS(SQL Server 10.0.1600-HKRAM\my name\)
is Auburn Blue, which I created in MSFT SQL Server Management Studio. The file I want I created in VWD 2008 Express. It also resides in ...My Documents\Visual Studio 2008\WebSites\AuburnSQL\App_Data. Its size is the same but its Date Modified is a couple days more recent.
I can create a new database with the Database\New Database command. Where is the command to open an existing database?
What am I missing?
Mark H.
Post #783548
dbo.benyos
dbo.benyos
Posted Sunday, September 06, 2009 8:18 PM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Tuesday, February 09, 2010 2:41 AM
Points: 140,
Visits: 1,019
Well, your mistake is by calling it "open". You don't
open
databases. You
access
them if they reside on your server.
You first need to bring that DB onto the server you're looking at.
Luckily it is one command below... It is called 'attach'. Just point at the MDF file and wait for a moment.
Good luck
Tal Ben Yosef
www.TalBenYosef.com
(visit my LinkedIn profile)
Post #783586
mhh12
mhh12
Posted Tuesday, September 08, 2009 4:32 PM
Grasshopper
Group: General Forum Members
Last Login: Wednesday, January 26, 2011 8:11 AM
Points: 17,
Visits: 40
Thank you. It works.
Post #784626
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.