HI,
I am trying to setup a job to restore a remote database backups.
these backups run every alternative day.
Sql attaches year day and time to the bakup file. How do I use it?
currently I am running TSQL to do a restore
restore database from
disk=N'\\Comp_nam\Backup_Folder\DBase_200911170000.bak'
with move 'DBase' to 'c:\Program files\mssql\data\Dbase.mdf',
with move 'DBase_log' to 'c:\program files\mssql\log\dbase_log.ldf'
the filename changes everyday. How can I use wildcards to pass the value in this case?
your help would be much appreciated.
Thanks.