📄 cs_applicationconfigurationsettings_createupdate.prc
字号:
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[cs_ApplicationConfigurationSettings_CreateUpdate]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[cs_ApplicationConfigurationSettings_CreateUpdate]
GO
CREATE PROCEDURE [dbo].cs_ApplicationConfigurationSettings_CreateUpdate --11, 36, 0, 1, 0
(
@SettingsID int,
@ApplicationType smallint,
@Settings NText = null
)
as
if exists(Select SettingsID FROM cs_ApplicationConfigurationSettings where SettingsID = @SettingsID and ApplicationType = @ApplicationType)
Begin
Update cs_ApplicationConfigurationSettings
Set Settings = @Settings
where SettingsID = @SettingsID and ApplicationType = @ApplicationType
End
Else
Begin
Insert cs_ApplicationConfigurationSettings (SettingsID, ApplicationType, Settings)
Values(@SettingsID, @ApplicationType, @Settings)
End
GO
SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO
grant execute on [dbo].[cs_ApplicationConfigurationSettings_CreateUpdate] to public
go
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -