cs_posts_addauditdeletedpostcontent.prc
来自「community server 源码」· PRC 代码 · 共 40 行
PRC
40 行
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[cs_posts_AddAuditDeletedPostContent]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[cs_posts_AddAuditDeletedPostContent]
GO
Create Proc [dbo].cs_posts_AddAuditDeletedPostContent
(
@PostID int = -1,
@UserID int = -1,
@SectionID int = -1,
@SettingsID int = -1,
@ApplicationType int = 9999,
@ParentID int = -1,
@ThreadID int = -1,
@PostType int = -1,
@PostLevel int = -1,
@Body ntext = null,
@Subject nvarchar(500) = null,
@IPAddress nvarchar(50) = null
)
as
Insert cs_posts_deleted_archive (PostID, UserID, SectionID, SettingsID, ApplicationType, Body, Subject, IPAddress, DeletedDate, ParentID, ThreadID, PostLevel, PostType)
Values (@PostID, @UserID, @SectionID, @SettingsID, @ApplicationType, @Body, @Subject, @IPAddress, getdate(), @ParentID, @ThreadID, @PostLevel, @PostType)
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
GRANT EXECUTE on dbo.cs_posts_AddAuditDeletedPostContent to public
GO
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?