I have simple Windows application which uses SQL Server 2014 LocalDB (.mdf
file).
And I want that whenever users click exit button, my application autom
I finally solved after many trial and analysis. For someone who is looking for solutions, I share mine as below.
It seems there's fewer people are developing with MS SQL Localdb than other databases.
The name of database doesn't have to include extension like .mdf and the equal sign= has to be together as DISK=
string backupdb = string.Format(@"BACKUP DATABASE greendb_{0} TO DISK='c:\Green_Backup\greendb_{0}.bak'", personID);