Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 database attached to sql server not found

Author  Topic 

svibuk
Yak Posting Veteran

62 Posts

Posted - 2013-12-15 : 01:59:40
i hve sql208 r2 on windows 7

i had a database attached on the regestered sql server
but few days back when i opned sql management studio the registered sever was not seen , after a lot of searching neither was the server seen nor could find the database

i am not sure as to wht happened with sql
i can reregister the sql but i am not able to find database on my system

any way it can be found & restored

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2013-12-17 : 02:44:43
search for the .mdf and re-attach. Otherwise, unless you have a backup, then there is no way.
Go to Top of Page

bilalbinamar
Starting Member

1 Post

Posted - 2013-12-22 : 04:29:51
please help me i am getting the flowing error when i try to attach a MDF file to sql server 2008. bilalbinamar@rediff.com

TITLE: Microsoft SQL Server Management Studio
------------------------------

Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

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

E:\he-ca-pr\he-ca-pr\Health Care Product\bin\Debug\Hospital.mdb is not a primary database file. (Microsoft SQL Server, Error: 5171)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.2047&EvtSrc=MSSQLServer&EvtID=5171&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------
Go to Top of Page

RickD
Slow But Sure Yak Herding Master

3608 Posts

Posted - 2014-01-06 : 03:31:02
An Hospital.mdb is not the primary file, find the primary file and load that instead.
Go to Top of Page
   

- Advertisement -