The article describes the process to setup correctly the SQL Server instance and LiteSpeed to perform a cross-domain backup job.
Steps to perform a SQL backup to an untrusted domain share:
EXECUTE sys.sp_configure 'show advanced options', 1;RECONFIGURE;
EXECUTE sys.sp_configure 'xp_cmdshell', 1;RECONFIGURE;
xp_cmdshell 'cmdkey /add:targetcomputername /user:targetuser /pass:targetpassword'
exec master.dbo.xp_backup_database@database = N'Demo03', @backupname = N'%D - Full Database Backup', @desc = N'Full Backup of %D on %Y-%m-%d %I:%M:%S %p', @compressionlevel = 7,@filename = N'\\10.250.36.122\Backups\%D-%Y%m%d%H%M%S.bak',@init = 1
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center