Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MShelp_logreader_agentid

  No additional text.


Syntax
CREATE PROCEDURE sys.sp_MShelp_logreader_agentid
(
    @publisher_id       smallint,
    @publisher_db       sysname
)
AS
begin
    set nocount on
    declare @retcode int
    declare @publisher sysname
    declare @job_id binary(16)
    declare @qv_package	varchar(20)
    declare @desk_top		int
    declare @license_value int
    declare @qv_value_package int

    
    -- security check
    -- only db_owner can execute this
    
    if (is_member ('db_owner') != 1)
    begin
        raiserror(14260, 16, -1)
        return (1)
    end

	select @qv_package = '845129433'
	select @license_value = 0
	select @desk_top = 3
			
	exec @qv_value_package = sys.sp_MSinstance_qv @qv_package
	if @@ERROR<>0
		begin
			raiserror(20089, 16, -1)
			return (1)
		end
	if @qv_value_package = 1		 --- 1 means desktop
		select @license_value = @desk_top   -- to be consistent with all other compenents.

    select id, name, @license_value from MSlogreader_agents where
        publisher_id = @publisher_id and
        publisher_db = @publisher_db

    return(0)
end

 
Last revision 2008RTM
See also

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