Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_getagentparameterlist

  No additional text.


Syntax
create procedure sys.sp_getagentparameterlist
(
    @agent_type int
)
as
begin
    declare  @snapshot_type      int
                ,@logreader_type     int
                ,@distribution_type  int
                ,@merge_type         int
                ,@qreader_type       int

    -- security check - must be sysadmin/dbo
    if (IS_SRVROLEMEMBER('sysadmin') <> 1 AND is_member ('db_owner') <> 1)
    begin
        RAISERROR(21089,16,-1)
        return 1
    end

    --initialize the constants
    select @snapshot_type = 1
            ,@logreader_type = 2
            ,@distribution_type = 3
            ,@merge_type = 4
            ,@qreader_type = 9

    --validate the agent_type
    if (@agent_type not in
            (@snapshot_type
            ,@logreader_type
            ,@distribution_type
            ,@merge_type
            ,@qreader_type))
    begin
        --The agent type is NULL or is invalid
        RAISERROR (21804, 16, -1, @agent_type)
        return 1
    end

    -- return all the parameters for this agent type
    SELECT
        agent_type
        ,N'-' + parameter_name
        ,default_value
        ,min_value
        ,max_value
    FROM msdb.dbo.MSagentparameterlist
    WHERE agent_type=@agent_type
    if @@error <> 0
    begin
        --could not select from MSagentparameterlist
        RAISERROR (21499, 16, -1, 'sys.sp_getagentparameterlist', 'SELECT from', 'msdb.dbo.MSagentparameterlist', @@error)
        return 1
    end

    return 0
end

 
Last revision 2008RTM
See also

  sp_MSdrop_replcom (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