Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSupdate_mqserver_distdb

  No additional text.


Syntax
create procedure sys.sp_MSupdate_mqserver_distdb
as
begin
    if exists (select * from MSdistribution_agents
        where queue_id IS NOT NULL and substring(queue_id, 1, 10) != N'mssqlqueue' and queue_server IS NULL)
    begin
        
        -- we have entries for active Queued subscriptions using MSMQ that need upgrade
        
        declare @queue_server sysname

        
        -- prepare the queue server name
        
        select @queue_server = @@servername
        if (charindex(N'\', @queue_server) > 0)
            select @queue_server = substring(@queue_server, 1, charindex(N'\', @queue_server) - 1)

        
        -- update the queue_server column for these entries
        
        update MSdistribution_agents
        set queue_server = @queue_server
        where queue_id IS NOT NULL and substring(queue_id, 1, 10) != N'mssqlqueue' and queue_server IS NULL
    end
end

 
Last revision 2008RTM
See also

  sp_MScreate_dist_tables (Procedure)
sp_MSdrop_replcom (Procedure)
sp_vupgrade_distdb (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