Viewing 15 posts - 676 through 690 (of 1,229 total)
Have you tried using MERGE for the upsert, instead of your current two-stage process?
Shredding XML isn't instant - you may gain by separating this from the table changes too:
SELECT
TradeID...
January 4, 2012 at 5:32 am
Stephanie Giovannini (1/3/2012)
January 3, 2012 at 1:56 pm
I've always used a local temp table to capture OUTPUT.
Scanning BOL, you can't OUTPUT to a remote view - but what about a 'local' one? Use $action and filter...
January 3, 2012 at 11:29 am
Uripedes Pants (1/3/2012)
my point was that, sure, there COULD be a buisness need, but it's really a formatting issue and should be done at display time rather than stored. :hehe:
As...
January 3, 2012 at 11:21 am
You're welcome.
Did you resolve the problem? Would you like to share with us the resolution?
January 3, 2012 at 10:33 am
You can use CASE in a WHERE clause.
January 3, 2012 at 8:35 am
mic.con87 (1/3/2012)
January 3, 2012 at 8:20 am
Shamshad Ali (1/3/2012)
...why we are limiting it to lr.Level < 8?does that means we are drilling down to 7th level? and NOT till nth Level?...
Where A is a member of...
January 3, 2012 at 7:45 am
Try this query, using different values of Groupname. If it works, then we'll pivot the results using FOR XML PATH to put them into a comma-delimited list:
;WITH rCTE AS (
SELECT...
January 3, 2012 at 6:06 am
Run the query outside the stored procedure - always much easier to debug - and chop out some unnecessary bits.
DECLARE
@LNK_File_ID numeric(18, 0),
@LNK_Client_ID numeric(18, 0),
@ExpanseDate datetime
SET @ExpanseDate = '29/12/2011 12:00:00...
January 3, 2012 at 5:53 am
Thanks for the feedback - I won't hold my breath while you're still testing 😉
DENSE_RANK() and ROW_NUMBER() are used together like this to resolve subsets of the same partition, where...
January 3, 2012 at 1:56 am
What datatype is E.[ExpanseDate]?
January 3, 2012 at 1:36 am
,CONVERT(Datetime,E.[LNK_CreatedBy_ID],103) as [LNK_CreatedBy_ID]
E.[LNK_CreatedBy_ID]= Case when @LNK_Client_ID IS NOT NULL THEN @LNK_Client_ID
...
January 3, 2012 at 12:54 am
mic.con87 (1/3/2012)
January 3, 2012 at 12:47 am
Viewing 15 posts - 676 through 690 (of 1,229 total)