Home Microsoft SQL Server DigiMailing iRN Contact


  No additional text.


create procedure sys.sp_MSdeleteretry
    (@temptable nvarchar(386),
     @tablenick int,
     @rowguid uniqueidentifier)
    declare @guidstr nvarchar(38)
    declare @nickstr nvarchar(12)
    declare @retcode int

    declare @quotedtemptable nvarchar(388)

    ** do permission checking
    exec @retcode = sys.sp_MSrepl_PAL_rolecheck @tablenick = @tablenick
    if @retcode<>0 or @@ERROR<>0 return (1)

    ** Modify temp table, granted to public.

    set @nickstr = convert(nchar, @tablenick)
    set @guidstr = '''' + convert(nchar(36), @rowguid) + ''''

    select @quotedtemptable = quotename(@temptable)

    execute ('delete from ' + @quotedtemptable + ' where tablenick = ' +
              @nickstr + ' and rowguidcol = ' + @guidstr)
    IF @@ERROR <>0 RETURN (1)
    return (0)

Last revision 2008RTM
See also

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