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
 General SQL Server Forums
 Data Corruption Issues
 how to convet sql server db file to mdf

Author  Topic 

aliusman21284
Starting Member

3 Posts

Posted - 2014-09-12 : 07:46:09
hi

i m using an application made in C#. the database provided to me is a file without extension. i want to convert this file to .mdf file

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2014-09-12 : 10:02:48
Ask the person who provided it to you what type of file it is? It is possible that it is a backup file. If that is the case, you can restore the backup to a SQL Server.
Go to Top of Page

aliusman21284
Starting Member

3 Posts

Posted - 2014-09-12 : 14:17:55
it is a backup file.
but when i try to restore it. it gives error "64 bit .............".
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-09-12 : 14:30:57
quote:
Originally posted by aliusman21284

it is a backup file.
but when i try to restore it. it gives error "64 bit .............".



A backup file of what? Is it a SQL Server backup? If so, just run RESTORE DATABASE (or use the restore database wizard). SQL doesn't care what extension you use.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

aliusman21284
Starting Member

3 Posts

Posted - 2014-09-12 : 14:34:27
i think i am talking about sql....
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-09-12 : 14:50:53
Try a restore and see what it says.

"sql" can mean a lot of things, like SQL Server, Oracle, MySql, etc.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

prett
Posting Yak Master

212 Posts

Posted - 2014-09-16 : 01:52:44
Please share the complete error message. It will help us to understand the problem.
Go to Top of Page

Lincolnburrows
Yak Posting Veteran

52 Posts

Posted - 2014-09-19 : 02:38:46
Hi

So you need to convert .db to MDF File i.e. SQLite files to SQL Server database? If yes then you need a third party tool.
Go to Top of Page
   

- Advertisement -