Viewing 15 posts - 121 through 135 (of 499 total)
This might do it:
SELECT j.NAME
, s.next_run_time
FROM dbo.sysjobschedules s
CROSS APPLY (
SELECT datepart(YEAR, getdate()) * 10000 + datepart(MONTH, getdate()) *...
November 3, 2015 at 1:22 pm
synonyms are also a nice tool, and you can avoid renames
November 2, 2015 at 3:50 pm
you would need to use dynamic sql, since you can't pass a database name in a variable.
November 2, 2015 at 1:44 pm
How many indexes? How are you measuring the space used? What's the fragmentation like?
November 2, 2015 at 1:42 pm
vamsi.341 (11/2/2015)
Either way it's not...
November 2, 2015 at 1:33 pm
How are you trying to pass the values to the query?
November 2, 2015 at 12:38 pm
Looking at your WHERE clause:
WHERE (ORG_Manager_Q.CompanyShortName IN (@ReportParam)) AND
((ORG_Manager_Q.ContractCountIndicator IN (@ContractsCountParam))AND
(ORG_Manager_Q.AssignmentCountIndicator IN (@AssignmentsCountParam)))
This will select rows where CompanyShortName, ContractCountIndicator and AssignmentCountIndicator equal to @ReportParam, @ContractsCountParam and @AssignmentsCountParam respectively.
Is that...
November 2, 2015 at 9:33 am
Resender (11/2/2015)
November 2, 2015 at 8:56 am
nicolas_johnson 52979 (11/2/2015)
November 2, 2015 at 8:27 am
A Select query with NOLOCK could return uncommitted results. That can include rows about to be deleted or updated. If those rows include FKs e.g. pointing to tables...
November 2, 2015 at 7:50 am
Great question, Hugo! Do you have any measurements on just how much READUNCOMMITTED (I don't like the synonym NOLOCK since it is an oxymoron -- that is, schema locks...
November 2, 2015 at 6:53 am
Neither is an "expression" - those are data types. The fact that other languages allow for you to use types and expressions interchangeably is frankly a defect or sloppiness on...
October 30, 2015 at 8:25 am
g.britton (10/30/2015)
Why not just use a check constraint or do you?
Yup -- a quick update from my phone! Anyway why not add a check constraint to these columns CHECK...
October 30, 2015 at 7:04 am
Why not just use a check constraint or do you?
October 30, 2015 at 4:43 am
Luis Cazares (10/29/2015)
g.britton (10/29/2015)
October 29, 2015 at 11:32 am
Viewing 15 posts - 121 through 135 (of 499 total)