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
 Other SQL Server 2008 Topics
 Recover sql tables from mdf file with filstream

Author  Topic 

mac73
Starting Member

3 Posts

Posted - 2010-01-14 : 12:15:11
Hi,
I have accidently deleted the folder that has filestream datatype in the database. As a result the sql server database is not loaded in the manage studio.

I tried on another server with mdf file and ldf files but it gives the error that folder that has filestream data doesnot exists. Even if i create the folder it gives me error.

Any way to resolve this? Can i edit mdf file to remove filestream dependency?

I dont need data. I just need tables schemas and er diagrams.

Is there any free tool available that will help me to get the schema?

Any help is appreciated.

Regards

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-01-14 : 12:44:07
You can not edit the MDF file.

Restore from your backup.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

mac73
Starting Member

3 Posts

Posted - 2010-01-14 : 12:46:47
Hi,

I dont have back up file. I have only mdf and ldf file.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-01-14 : 12:49:16
You could try this: http://social.msdn.microsoft.com/Forums/en/sqldatabaseengine/thread/edf9c267-309f-4eb0-8365-415f3b013a28

Other than that though, you are probably hosed. You may be able to recover some things using the various recovery tools, but they aren't free.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-01-14 : 13:33:43
Is the database still attached to a SQL instance? (probably the original one)
If so, what's the database state? (query sys.databases)

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -