Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MScheck_article_auto_identity

  No additional text.


Syntax
create procedure sys.sp_MScheck_article_auto_identity
    @artid uniqueidentifier,
    @objid int output,
    @qualified_table_name nvarchar(517) output
as
    declare @identity_support int
    declare @artname sysname
    declare @ident_increment numeric(38,0)
    declare @artidstr nvarchar(36)

    select @artidstr = convert(nvarchar(36), @artid)
    select @objid = NULL

    select @artname = name, @objid=objid, @identity_support=identity_support from dbo.sysmergearticles where artid=@artid
    if @objid is NULL
    begin
        RAISERROR(20669 , 16, -1, @artidstr)
        return (1)
    end

    select @qualified_table_name = NULL
    exec sys.sp_MSget_qualified_name @objid, @qualified_table_name output
    if @qualified_table_name is NULL
    begin
        RAISERROR(20669 , 16, -1, @artidstr)
        return (1)
    end

    if @identity_support=0
    begin
        raiserror(20667, 16, -1, @artname)
        return 1
    end

    select @ident_increment = IDENT_INCR(@qualified_table_name)
    if @ident_increment is NULL
    begin
        RAISERROR(21756, 16, -1, @qualified_table_name)
        return (1)
    end

    return 0

 
Last revision 2008RTM
See also

  sp_MSallocate_new_identity_range (Procedure)
sp_MSdrop_rlrecon (Procedure)
sp_MSget_identity_range_info (Procedure)
sp_MSsetup_identity_range (Procedure)
sp_MSset_new_identity_range (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