title: Import .mdf and .ldf Files into PostgreSQL (OS X El Capitan)
body: <p>Apologies if this has come up before - I have spend the entire day Googling this and have gotten no closer to working out what to do.</p>
  
  <p>We have a database that we purchased from a 3rd party. This was first received years ago - long before I ever worked here. The person that previously set it up no longer works here so I can't ask them what they did and I can't find any documentation of the process that they used. </p>
  
  <p>We have just received an update from the 3rd party however it wasn't really what I expected. I was lead to believe that it was going to be a bunch of csv files however it appears to be a database dump from a different system.</p>
  
  <p>The received update contains a .mdf and a .ldf file as well as a couple of csv files. From what I can tell from online, .mdf and .ldf files are produced using SQL Server. I do not have any access to SQL Server and only use PostgreSQL.</p>
  
  <p>I am just wondering if there is any way to import the .mdf and .ldf files into PostgreSQL? I am on OS X (El Capitan).</p>
  
  <p>The only similar post I could find was:</p>
  
  <p><a href="https://dba.stackexchange.com/questions/17835/how-to-convert-sql-server-mdf-database-to-mac-os-postgresql-database-on-mac-os">https://dba.stackexchange.com/questions/17835/how-to-convert-sql-server-mdf-database-to-mac-os-postgresql-database-on-mac-os</a></p>
  
  <p>However the suggested answers seemed to require using SQL Server - which I don't have any access to.</p>
  
  <p>I also looked at:</p>
  
  <p><a href="https://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL" rel="nofollow noreferrer">https://wiki.postgresql.org/wiki/Converting_from_other_Databases_to_PostgreSQL</a></p>
  
  <p>However I'll be honest - I got pretty confused pretty quickly and a lot of them seemed to be Windows specific tools and I need Mac. (Or they are way too expensive!)</p>
  
  <p>Has any one got any suggestions as I am completely stuck?</p>