-
Apr 8th, 2024, 01:15 PM
#1
Thread Starter
Junior Member
I detached a database from SQL Server Object Explorer
How do I get it back? There's no attach option.
-
Apr 8th, 2024, 01:32 PM
#2
Re: I detached a database from SQL Server Object Explorer
There should be...
https://learn.microsoft.com/en-us/sq...h-a-database-1
In SQL Server Management Studio Object Explorer, connect to an instance of SQL Server Database Engine, and then select to expand that instance view in SSMS.
Right-click Databases and select Attach.
In the Attach Databases dialog box, to specify the database to be attached, select Add. In the Locate Database Files dialog box, select the location where the database resides and expand the directory tree to find and select the .mdf file of the database; for example:
Code:
C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\DATA\AdventureWorks2022_Data.mdf
-tg
-
Apr 8th, 2024, 11:51 PM
#3
Re: I detached a database from SQL Server Object Explorer
Are you talking about the Object Explorer window in SSMS or the Server Explorer window in VS? I'm assuming the former but, even if it's the latter, this question has nothing to do with VB.NET. Please post in the most appropriate forum for the topic. Thread moved.
-
Apr 9th, 2024, 04:40 PM
#4
Thread Starter
Junior Member
Re: I detached a database from SQL Server Object Explorer
Sorry about poasting on the wrong board guys...
Ah, so you do it in SSMS... you'd think if there's a 'detach' option in VS they could just add an 'attach' option too... oh well...
Got it working, thanks. Cute pups!
-
Apr 9th, 2024, 09:40 PM
#5
Re: I detached a database from SQL Server Object Explorer
I just took a look and realised that your terminology was accurate in the first place - there is a window named SQL Server Object Explorer in VS. Not one I've ever used as I don't think it can do anything that SSMS can't and I always use that.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|