This commit is contained in:
John Jenko 2010-08-04 15:07:27 +00:00
parent ef26bcbdc4
commit 1d5a43627c

View File

@ -586,7 +586,7 @@ namespace DataLoader
{
string pause = "pause";
string bckupFileName = tbxBackupFileName.Text;
if (!bckupFileName.EndsWith(".bck")) bckupFileName += ".bck";
if (!bckupFileName.EndsWith(".bak")) bckupFileName += ".bak";
string backupPath = _LogFilePath + @"\" + bckupFileName;
string bckupcmd = "sqlcmd -E -S.\\sqlexpress -Q \"backup database [VEPROMS] to disk = '" + backupPath + "'\"";
string rstorecmd = "sqlcmd -E -S.\\sqlexpress -Q \"restore database [VEPROMS] from disk = '" + backupPath + "'\"";