Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.

create procedure sys.sp_MSreplcheck_permission(
    @objid int,
    @type int,
    @permissions int)
    declare @tablename sysname
    declare @ownername  sysname

    select @ownername=SCHEMA_NAME(schema_id) from sys.objects where object_id=@objid
    select @tablename=object_name(@objid)

    -- bypass this checking for dbo or member of db_owner.
    if is_srvrolemember('sysadmin') = 1 or is_member ('db_owner') = 1
        return (0)

    if @permissions=0
        return (0)

    if @type=1 and @permissions & 1 = 1 and permissions(@objid) & 0x8=0
        return (1)

    if @type=2 and @permissions & 2 = 2 and permissions(@objid) & 0x2=0
        return (1)

    if @type=3 and @permissions & 4 = 4 and permissions(@objid) & 0x10=0
        return (1)

    return (0)

Last revision 2008RTM
See also

  sp_MSdelrow (Procedure)
sp_MSdelrowsbatch (Procedure)
sp_MSdelrowsbatch_downloadonly (Procedure)
sp_MSdrop_rlrecon (Procedure)
sp_MSmakeinsertproc (Procedure)
sp_MSmakeupdateproc (Procedure)


  Query a named instance
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
Zoekmachine optimalisatie
SQL Servers hidden objects
Flash in Ajax
De hype die AJAX heet
Barcode scannen
MySQL; Gratis, makkelijk en snel!
sIFR; de combinatie tussen HTML en Flash