MAILTO via stored procedure
Ulfius
Posts: 15
Using this command via QA, I'm receiving error 150: SMTP host name not defined. The same command via sqlbackupc and the SMTP test in the GUI work fine.
master..sqlbackup '-SQL "BACKUP DATABASE [ISI] TO DISK = [d:\sql_data\MSSQL\BACKUP\<AUTO>] WITH LOGTO = [d:\sql_data\MSSQL\BACKUP\Logs\], MAILTO = ''<my email>''" -E'
master..sqlbackup '-SQL "BACKUP DATABASE [ISI] TO DISK = [d:\sql_data\MSSQL\BACKUP\<AUTO>] WITH LOGTO = [d:\sql_data\MSSQL\BACKUP\Logs\], MAILTO = ''<my email>''" -E'
Comments
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8