SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 database attached to sql server not found
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

svibuk
Yak Posting Veteran

62 Posts

Posted - 12/15/2013 :  01:59:40  Show Profile  Reply with Quote
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

United Kingdom
3608 Posts

Posted - 12/17/2013 :  02:44:43  Show Profile  Reply with Quote
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

India
1 Posts

Posted - 12/22/2013 :  04:29:51  Show Profile  Reply with Quote
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

United Kingdom
3608 Posts

Posted - 01/06/2014 :  03:31:02  Show Profile  Reply with Quote
An Hospital.mdb is not the primary file, find the primary file and load that instead.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.28 seconds. Powered By: Snitz Forums 2000