I'm confirming both work just perfectly!!! Now to decide which one to use Perhaps both!
Lastly, is there a way to perform this same action on a remote server?
Otherwise, I'd need to adjust some paths some paths.
For instance, the latest script gives us the following path:
Code: Select all
sql=C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER
MSSQL_PATH=C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL
In order to copy over *.BAK files from source server, I'd need a way to replace the " : " in MSSQL_PATH to a " $ " symbol.
Is there an easy way to do that? Ultimately, I'd prefer to perform the search on the remote server too as you guys provided above.
Thank you again!!