Connect directly to a .mdf file RRS feed

  • Question

  • I just got an application that uses SQL Server Express as their data store. It works fine but it does NOT attach the database to the sql server instance. Somehow they are connecting directly to the .MDF.

    I need to integrate with the application so I want to do the same thing. I know I can attach the database to the instance but that is impractical in this situation (there're actually many different databases and they change with each period).

    I have checked and I see that I can attach a database to the instance with the connectionstring but not how to connect WITHOUT attaching it to the instance. FTR, I need to use ODBC or OLEDB for this.

    Any ideas?


    Friday, December 30, 2016 2:30 PM


All replies