how to logg any method

 USE [DellPII]

GO


/****** Object:  StoredProcedure [dbo].[SP_Logging]    Script Date: 3/29/2022 10:57:56 AM ******/

SET ANSI_NULLS ON

GO


SET QUOTED_IDENTIFIER ON

GO


                                


CREATE PROCEDURE [dbo].[SP_Logging]                  

@rowcount int,

@tablename nvarchar(100),

@fieldname nvarchar(100),

@secureid nvarchar(100),

@msg nvarchar(500)


  

AS                                              

BEGIN   


insert into LogTable ([Rowcount],TableName,ColumnName,Operation,message)

values (@rowcount,@TableName,@FieldName,@secureid,@msg)



END

GO



Comments

Popular posts from this blog

java chapter11 practice question on abstruct class and interfaces

DAY 12 -AZURE DP900(Microsoft Azure Data Fundamentals: Explore non-relational data in Azure)

java exercise4