Is it possible to view .mdf(Mssql server database file) files in c#?

  • (2 Pages)
  • +
  • 1
  • 2

20 Replies - 1550 Views - Last Post: 30 March 2013 - 06:45 AM Rate Topic: -----

#16 h4nnib4l  Icon User is offline

  • The Noid
  • member icon

Reputation: 1176
  • View blog
  • Posts: 1,662
  • Joined: 24-August 11

Re: Is it possible to view .mdf(Mssql server database file) files in c#?

Posted 28 March 2013 - 11:43 AM

What is your aversion to installing free software that is designed precisely to work with the proprietary-formatted files you wish to view? That's like saying you want a way to view the internet through Windows Explorer because you don't want to install a browser. Do you see why we're getting suspicious?
Was This Post Helpful? 0
  • +
  • -

#17 mikelsey  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 26-March 13

Re: Is it possible to view .mdf(Mssql server database file) files in c#?

Posted 28 March 2013 - 02:08 PM

You think wrong i want to improve myself also.thanks for your help.
Was This Post Helpful? 0
  • +
  • -

#18 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3183
  • View blog
  • Posts: 9,652
  • Joined: 05-May 12

Re: Is it possible to view .mdf(Mssql server database file) files in c#?

Posted 28 March 2013 - 06:25 PM

If your goal is improvement of your skills without using readily available tools, then you'll have a take a little detour on learning how to reverse engineer file structures. In that case, then then answer to your original query:

Quote

I want to know if it is possible to view tables of .mdf database files without using sql server in c#?

would be yes. You'll just have to figure out the file format on your own.

By the way, good luck trying to figure out the file format for the cases when the data is encrypted by a password.
Was This Post Helpful? 0
  • +
  • -

#19 mikelsey  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 26-March 13

Re: Is it possible to view .mdf(Mssql server database file) files in c#?

Posted 30 March 2013 - 06:08 AM

Here there is example https://github.com/improvedk/OrcaMDF this app views the content of the .mdf files.
Was This Post Helpful? 0
  • +
  • -

#20 Skydiver  Icon User is offline

  • Code herder
  • member icon

Reputation: 3183
  • View blog
  • Posts: 9,652
  • Joined: 05-May 12

Re: Is it possible to view .mdf(Mssql server database file) files in c#?

Posted 30 March 2013 - 06:37 AM

If you read the associated blog entry, he also had to go through the process of reverse engineering the file format:

Quote

Fast forward a bit of patience, some help from #sqlhelp and @PaulRandal in particular, I managed to reverse engineer the header format, as well as a bit more than I initially set out to do for MOW.

Was This Post Helpful? 0
  • +
  • -

#21 mikelsey  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 14
  • Joined: 26-March 13

Re: Is it possible to view .mdf(Mssql server database file) files in c#?

Posted 30 March 2013 - 06:45 AM

Yes I read.Thank you
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2