Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

How do I get the internal SQL Server Database version number of an .MDF database?

$
0
0

I have SQL Server 2008 and 2012 installed on my machine. I am writing a VB.Net application in which I would like to be able to obtain the .MDF file version number and create a connection string thtat will open the SQL Server database from the instance it was created on and NOT have it automatically updated to SQL Server 2012.

How can I get the internal database number of an .MDF file without attaching it to an SQL Server instance?

i.e. SQL Server 2008 - Version 661; SQL Server 2008 R2 - Version 665; SQL Server 2012 - Version 706; etc.

Thanks


Viewing all articles
Browse latest Browse all 12963

Trending Articles



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