Advertisement
Advertisement
| 06.04.2008 at 09:41AM PDT, ID: 23457394 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: |
'Stored procedure 1
ALTER PROC [dbo].[spCSW_ListFocusISINList]
@FocusISINGroupCd varchar(7) = 'ALL'
as
set nocount on
if @FocusISINGroupCd = 'ALL'
select FocusISINGroupCd, FocusISINGroupNm from tb_FocusISINGroup (nolock)
else
Select SecISINNo from tb_FocusISINList (nolock) where FocusISINGroupCd = @FocusISINGroupcd
'Stored Procedure 2
ALTER PROC [dbo].[spCSW_UpdateFocusISINList]
@FocusISINGroupCd varchar(7)
, @ActionFlag char(1)
, @XMLText text
, @LoginDMSysId varchar(40) = null
, @RefreshFlag char(1) = 'N'
as
set nocount on
declare @SMDBFlagIn char(1)
, @S3dFlagIn char(1)
if @LoginDMSysId is null select @LoginDMSysId = current_user
if @RefreshFlag = 'Y' and @ActionFlag = 'A'
delete tb_FOcusISINList where FocusISINGroupCd = @FocusISINGroupCd
if @XMLText is null return
select @SMDBFlagIn = substring(ValidateMappingCd,1,1)
, @S3dFlagIn = substring(ValidateMappingCd,2,1)
from tb_FocusISINGroup (nolock)
where FocusISINGroupCd = @FocusISINGroupCd
declare @ISINXMLdoc int
declare @ISINList table (SecISINNo varchar(30))
EXEC sp_xml_preparedocument @ISINXMLdoc OUTPUT, @XMLText
insert @ISINList
select SecISINNo
from openxml (@ISINXMLdoc, '/ISINLIST/ISIN',2)
with ( SecISINNo varchar(30))
EXEC sp_xml_removedocument @ISINXMLdoc OUTPUT
--**********************************
if @ActionFlag = 'A'
begin
insert tb_FocusISINList (FocusISINGroupcd, SecISINNo, RowInsrtdTS, RowInsrtdbyUserId)
select @FocusISINGroupCd, SecISINNo, getdate(), @LoginDMSysId from @ISINList i
where SecISINNo not in
(select f.SecISINNo from tb_FocusISINList f (nolock) where FocusISINGroupCd = @FocusISINGroupCd and f.SecISINNo = i.SecISINNo)
end
--**********************************
if @ActionFlag = 'D'
begin
delete tb_FocusISINList
from tb_FocusISINList f
join @ISINList i
on f.SecISINNo = i.SecISINNo
where f.FocusISINGroupCd = @FocusISINGroupCd
end
ASP CODE:
dim oRSIsin
dim cmdoRSIsin
set cmdoRSIsin = server.CreateObject("ADODB.Command")
set oRSIsin = server.CreateObject("ADODB.Recordset")
with cmdoRSIsin
.ActiveConnection = conn
.CommandType=adCmdStoredProc
.CommandText="[sp_CSWListFocusISINList]"
set oRSIsin = .Execute
end with
set cmdoRSIsin = nothing
|