Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 4729

Connect directly to a .mdf file

$
0
0

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 connectionstrings.com 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?

Thanks


Viewing all articles
Browse latest Browse all 4729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>