Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MStable_not_modifiable

  No additional text.


Syntax
create procedure sys.sp_MStable_not_modifiable
    @objid   int,
    @artid int
as
    declare @colname      sysname
    declare @typestring   nvarchar(4000)
    declare @this_col     int
    declare @art_col      int
    declare @isset        int
    declare @found int, @repl_columns int

    select @art_col = 1
    select @found = 0, @repl_columns = 0

    DECLARE hCColid CURSOR LOCAL FAST_FORWARD FOR
    select column_id from sys.columns where object_id = @objid order by column_id asc

    OPEN hCColid

    FETCH hCColid INTO @this_col

    WHILE (@@fetch_status <> -1)
    begin
    exec @isset = sys.sp_isarticlecolbitset @this_col, @artid

        if @isset != 0 and EXISTS (select name from sys.columns where object_id=@objid and column_id=@this_col and is_computed<>1)
    begin
        select @repl_columns = @repl_columns + 1
           exec sys.sp_MSget_type @objid, @this_col, @colname output, @typestring OUTPUT

           if @typestring = N'timestamp' or ColumnProperty(@objid, @colname, 'IsIdentity') = 1
            select @found = 1
    end

       FETCH hCColid INTO @this_col
    end
    CLOSE hCColid
    DEALLOCATE hCColid

    if @found = 1 and @repl_columns = 1
        return 1
    else
        return 0

 
Last revision 2008RTM
See also

  sp_MSdrop_repltran (Procedure)
sp_MSscript_sync_del_proc (Procedure)
sp_MSscript_sync_ins_proc (Procedure)
sp_MSscript_sync_upd_proc (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