Home Microsoft SQL Server DigiMailing iRN Contact
    Keyword



sys.sp_MSmaketempinsertproc

  No additional text.


Syntax
-- Create temp sp, no security check needed
create procedure sys.sp_MSmaketempinsertproc
    (@tablename sysname, @procname sysname)
as
        declare @qual_tablename nvarchar(140)
        declare @qual_procname nvarchar(140)
        select @qual_procname = QUOTENAME(@procname)
        select @qual_tablename = QUOTENAME(@tablename)

        -- now create the procedure
        execute ('create procedure dbo.' + @qual_procname + '
        ( @p1 int, @p2 uniqueidentifier, @p3 int, @p4 nvarchar(255), @p5 tinyint) as
        update ' + @qual_tablename + ' set tablenick = @p1, rowguid = @p2, errcode = @p3, errtext = @p4, type = @p5
                where rowguid = @p2
        if (@@rowcount = 0)
                insert into ' + @qual_tablename + ' (tablenick, rowguid, errcode, errtext, type) values (@p1, @p2, @p3, @p4, @p5)')

        if @@ERROR<>0
        begin
                return(1)
        end

 
Last revision 2008RTM
See also

  sp_MScreateretry (Procedure)
sp_MSdrop_rlrecon (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