Quantcast
Channel: Red Gate forums: SQL Backup 7
Viewing all articles
Browse latest Browse all 713

RE: Run Backup without returning dataset

$
0
0
Hi,

Whilst I don't think SQL Backup doesn't have option to inhibit all result sets, you can hide its output by wrapping it in an sp_executesql command like so:

declare @sql nvarchar(2000)
set @sql = N'SELECT 1'
create table #temp (dummy nvarchar(max))
insert into #temp exec master..sp_executesql @sql

Where 'select 1' is your backup command and the temporary table schema matches the output format of SQL Backup, which I think it a single column of nvarchar.

Regards,

Viewing all articles
Browse latest Browse all 713

Trending Articles