SQL Server 2012 では、ストアド プロシージャと任意の関数のコードを記述します。その後、変更したいときに余分な空白行のギャップを追加したため、非常に受け入れられない長さのように見えます..
CREATE proc sp_delete_Rte_article_admin_Latest
(
@id int
)
as
begin
if exists (select * from tblRte where Id=@id )
begin
declare @IvanID bigint
set @IvanID=(select [IvanArtId] from tblRte where Id=@id )
insert into tblRteOnDelete([IvanArtId],[StoryType],[ChannelType],[Filename],
[Headline],[PublishDate],[Title],[DocScope],[KeyWord],[Byline],[City],
[State],[StoryDate],[BodyContents],[DownloadedDate],DeleteDate)
select [IvanArtId],[StoryType],[ChannelType],[Filename],[Headline],[PublishDate],
[Title],[DocScope],[KeyWord],[Byline],[City],[State],[StoryDate],
[BodyContents],[DownloadedDate],GETDATE()
from tblIvanhoeXmlFeeds
where Id=@id
delete from tblRte where Id=@id
delete from tblUpdatedRteTopics where IvanArtId=@IvanID
delete from tblCheckAllowRte where ArticleID=@IvanID
delete from tblAddRteeApprove where ArticleID=@IvanID
return 1
end
else
begin
return 0
end
end
これを常に移動するにはどうすればよいですか..任意の設定ですか?