Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.xp_execresultset

  No additional text.


Syntax
create procedure sys.xp_execresultset
(
    @cmd    nvarchar(4000),
    @dbname    sysname = NULL,
    @debug    bit = 0
)
as
begin
    declare @retcode bit,
            @proc nvarchar(4000)

    -- check to ensure that the @dbname provided is neither null or empty
    if isnull(rtrim(@dbname), N'') = N''
    begin
        raiserror('Internal Error : @dbname cannot be null or empty.', 16, -1)
        return 1
    end

    select @proc = quotename(@dbname) + N'.dbo.sp_execresultset'
    exec @retcode = @proc @cmd, @debug

    return @retcode
end

 
Last revision 2008RTM
See also

  sp_addsynctriggerscore (Procedure)
sp_getqueuedrows (Procedure)
sp_IHexecresultset (Procedure)
sp_link_publication (Procedure)
sp_MSaddmergetriggers (Procedure)
sp_MScreateandsetarticleprocs (Procedure)
sp_MScreatebeforetable (Procedure)
sp_MScreatelightweightarticleprocs (Procedure)
sp_MScreatelightweightinsertproc (Procedure)
sp_MScreatelightweightmultipurposeproc (Procedure)
sp_MScreatelightweightupdateproc (Procedure)
sp_MSdefer_check (Procedure)
sp_MSgenerate_articlechangemembershipevaluation_proc (Procedure)
sp_MSgen_sync_tran_procs (Procedure)
sp_MSgetconflictinsertproc (Procedure)
sp_MSgettrancftsrcrow (Procedure)
sp_MSmakebatchinsertproc (Procedure)
sp_MSmakebatchupdateproc (Procedure)
sp_MSmakeconflictinsertproc (Procedure)
sp_MSmakeconflicttable (Procedure)
sp_MSmakeexpandproc (Procedure)
sp_MSmakeinsertproc (Procedure)
sp_MSmakepeerconflicttable (Procedure)
sp_MSmakesystableviews (Procedure)
sp_MSmaketrancftproc (Procedure)
sp_MSmakeupdateproc (Procedure)
sp_MSpublicationview (Procedure)
sp_MSrepl_articleview (Procedure)
sp_MSsetup_partition_groups_table (Procedure)
sp_MSsetup_publication_for_partition_groups (Procedure)
       



News

  Query a named instance
Sybase+ASE+silent+install
SQL 2008 R2
Deprecated procedures in SQL2008
Reporting Services item-level role definitions
Create all your missing indexes
Converting datetime field
Start MSSQL Server Profiler at time
Replicating MSSQL Server views
Exploring Microsoft Sharepoint
The OLE DB provider "SQLNCLI10" for linked server indicates.
Mobile solar charger
Oracle to SQL Server replication
Cannot insert the value NULL into column
Undocumented Microsoft SQL Server 2008
VMware
Zoekmachine optimalisatie
SQL Servers hidden objects
FckEditor
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
PHP
sIFR; de combinatie tussen HTML en Flash