Viewing 15 posts - 3,541 through 3,555 (of 7,614 total)
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
Wow, yeah, for sure cluster by DateSent if that's the case. The other conditions won't matter.
Btw, the other tables I was worried about being scanned, I had more...
February 19, 2018 at 2:45 pm
Yep, that's fine. The results are interesting.
1) Do you often/very often search by a SentDate range?
2) Is a 1 year range typical for a date search? ...
February 19, 2018 at 1:37 pm
First thing is to make sure you have the best clustering index on the table. Then we'll look to see if additional indexes or code changes or other things are...
February 19, 2018 at 12:10 pm
February 14, 2018 at 7:40 am
February 12, 2018 at 2:33 pm
You could try using a CROSS APPLY to assign the alias name, then use that alias in the SELECT clause:
SELECT ...,
ca1.STAGE_022_COMPLETED_DATE_IS_NULL_REV_DATE,
[dbo].[fnc_CalcWorkDaysBetween] (ca1.STAGE_022_COMPLETED_DATE_IS_NULL_REV_DATE,...
February 10, 2018 at 1:03 pm
Float doesn't have nearly 60 digits of precision, does it?
SELECT REPLACE(CAST(FORMAT(CAST('123456789012345678901234567890123456789012345678901234567890' AS float),
'### | ### | ### | ### | ### | ### | ### | ###...
February 8, 2018 at 2:02 pm
Basically this:
SELECT SCandidateID
FROM dbo.CandidateSkills
WHERE Skill IN (@ssrs_skill_param)
GROUP BY SCandidateID
HAVING COUNT(*) = <number_of_values_in_skill_param>
But not sure how in SSRS to get a count of...
February 8, 2018 at 12:17 pm
February 8, 2018 at 11:44 am
I say keep it simple unless you really need to do something more complex:
SELECT STUFF(
CASE WHEN SUBSTRING(column1, 1, 3) = '000'...
February 8, 2018 at 10:39 am
Viewing 15 posts - 3,541 through 3,555 (of 7,614 total)