Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSgettranlastupdatedtime

  No additional text.


Syntax
create procedure sys.sp_MSgettranlastupdatedtime(
    @publisher sysname,
    @publisher_db sysname,
    @publication sysname,
    @subscription_type int
    )
as
begin
    set nocount on
    declare @last_updated_time nvarchar(40)

    select @last_updated_time = null

    if object_id('MSreplication_subscriptions') is null
    begin
        select 'last updated time' = @last_updated_time
        raiserror(21384, 16, -1)
        return 1
    end

    -- For subscriptions sharing an agent,
    -- the control may not be passing in the publication
    -- name.
    select @last_updated_time = sys.fn_replformatdatetime(time)
      from MSreplication_subscriptions
     where upper(@publisher) = upper(publisher)
       and @publisher_db = publisher_db
       and (((@publication is null or @publication = N'') and independent_agent = 0)
            or (@publication = publication))
       and @subscription_type = subscription_type

    select 'last updated time' = @last_updated_time

    if @last_updated_time is null
    begin
        raiserror(21384, 16, -1)
        return 1
    end
    return 0
end

 
Last revision 2008RTM
See also

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