You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EXEC Master.dbo.xp_fileexist @FileName, @File_Exists OUT
IF @File_Exists = 1
BEGIN
SET @smt = N'RESTORE DATABASE [TradeHero_DEV] FROM DISK ='''+ @FileName + ''' WITH FILE = 1, MOVE N''tradehero'' TO N''E:\DBs\TH_DEV.mdf'', MOVE N''tradehero_log'' TO N''E:\LOGs\TH_DEV.ldf'', NOUNLOAD, REPLACE, STATS = 5'
execute sp_executesql @smt
END
ELSE PRINT 'Error: Backup file '+ @FileName +' not found!!'