I have C#.Net winform application having SQL Server Database in SQLExpress with Windows Authentication. There is a Option related to Backup and restore batabase. In DBbackup i have provided user to select folder and database will be copy to that folder. for restore database i have written following line:
System.IO.File.Copy(filePath, Application.StartupPath + "\dbSTK.mdf",true);
它提出了一种例外,即《德华克法》已经使用。 怎么能够超越已经使用的手法?