I developed a windows based application where I use .mdf
file for backend operations. When no data is passed through application into .mdf
file that means a fresh .mdf
file, I am able to attach this .mdf
file in my SQL Server 2008 R2 successfully.
But when data is written into .mdf
file through application, I am not able to attach that .mdf
file. I am getting a SQL Server error:
Why version is changing automatically? Please help me