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