Viewing 15 posts - 3,526 through 3,540 (of 7,609 total)
Does is really matter if the numbers are sequential or is everyone just used to that?
If it doesn't really matter, you might just use an identity column and...
February 26, 2018 at 5:00 pm
I prefer this alternative. Not for performance reasons, mostly that it allows easier customization of the suffix chars to be assigned. Sometimes certain chars, such as I and O, are...
February 26, 2018 at 4:55 pm
Oops, correction:
UPDATE [EC_StoreAttributes]
SET AttributeValue = CONVERT(varchar(2), GETDATE(), 12) -- 112)112) + /* 12 rather than 112 */
SUBSTRING(AttributeValue, 3, LEN(AttributeValue)...
February 26, 2018 at 12:29 pm
Based on your last comments, this looks like the only way that might really help. Your keys columns are exceptionally non-selective, which makes it more difficult to get best performance.
February 26, 2018 at 12:27 pm
February 26, 2018 at 7:50 am
UPDATE t
SET response_sol_id = x.[solicitation_id]
FROM #temp_stp t
CROSS apply (SELECT P.solicitation_id
FROM [SOLICIT].[gtm_doc_prod] P
INNER JOIN [SOLICIT].[gtm_doc]...
February 23, 2018 at 2:55 pm
Again, you need to cluster the table on those columns then. You can adjust nonclus indexes all day and it most often won't do you much good.
February 23, 2018 at 2:26 pm
Yes, there is. It's called "SNAPSHOT ISOLATION". That's almost exactly like Oracle: point-in-time for SELECTs, version rows stored to handle long-running queries, readers don't block writers, writers don't block readers,...
February 23, 2018 at 12:51 pm
Hard to tell without selectivity / row count info, as Chris noted.
But, if the partition and dataareaid are how you typically query this table, and guessing that PARTITION...
February 23, 2018 at 12:45 pm
UPDATE [EC_StoreAttributes]
SET AttributeValue = CONVERT(varchar(2), GETDATE(), 112) +
SUBSTRING(AttributeValue, 3, LEN(AttributeValue) - 4) +
...
February 21, 2018 at 2:54 pm
Start fresh with a new db design!
Do a true logical design -- without NO carryover from current design and NO consideration of physical implementation (Oracle, SQL, etc.). NONE. ...
February 21, 2018 at 8:22 am
Short answer:
You want a dynamically-generated, static trigger. That sounds contradictory but it's not.
More detailed answer:
You must meet two critical conditions here:
1) the trigger must execute as...
February 20, 2018 at 10:58 am
Select Count(*) as XmlEventsCount,
Max(case when x.Status = 'NOTE' THEN 'Yes' ELSE 'No' END) as SentToProvider
From TicketEvents x
Where x.RowID=1136394
Group By x.RowID
February 20, 2018 at 10:45 am
Nope, it actually doesn't. By default SQL will make it so, but it doesn't have to be.
February 19, 2018 at 3:27 pm
Viewing 15 posts - 3,526 through 3,540 (of 7,609 total)