Viewing 15 posts - 1,681 through 1,695 (of 7,191 total)
If you're right, that's another good reason to use scripts instead of the GUI.
John
March 10, 2017 at 9:36 am
March 10, 2017 at 9:33 am
Sector7G - Friday, March 10, 2017 8:56 AMFor clarification, sometimes patients get entered twice.
Looks like you're missing a primary key or unique...
March 10, 2017 at 9:10 am
Like I said before, difficult to say without knowing what your expected results look like. But, from memory, the splitter function returns the element and the ordinal position, so all...
March 10, 2017 at 9:06 am
WHERE CONVERT(date, t1.transactiondate) >= DATEADD(month,DATEDIFF(month,'19800101',GETDATE())-12,'19800101')
AND CONVERT(date, t1.transactiondate) < DATEADD(month,DATEDIFF(month,'19800101',GETDATE()),'19800101')
John
March 10, 2017 at 9:03 am
Dan
The splitter function will do that for you. It takes a delimited list and returns the elements one per row.
John
March 10, 2017 at 8:47 am
What are you hoping to achieve here? Even if the NOCHECK option did overlook the foreign key violations, you'd get an error anyway when your try to turn NOCHECK off....
March 10, 2017 at 8:39 am
If you look in the errorlog of the server (assuming you're capturing failed logins in the errorlog), that will give you more details on why the logon failed.
John
March 10, 2017 at 7:29 am
How many rows are there in cvuReportingPeriod?
John
March 10, 2017 at 5:09 am
I wouldn't worry too much about the exact figures. You're not expecting much growth, so you're not going to have all that many auto-growth event, unless you set the increment...
March 10, 2017 at 4:33 am
And please, please - take half an hour to learn the T-SQL syntax for BACKUP and RESTORE. I guess that with the GUI, it fails and then you have to...
March 10, 2017 at 2:23 am
It appears the var_period and var_fy variables are never set in the first Execute SQL...
March 10, 2017 at 2:07 am
ORDER BY
CASE
WHEN [Group] IN ('Pres','Succ','Total') THEN 0
ELSE 1
END
, [Group]
Edit - oooh, this is an SSRS question. Sorry. There must be a way...
March 9, 2017 at 9:53 am
CASE TestType
WHEN 'Language' THEN HighScore
ELSE 0
END AS [Language]
, CASE TestType
WHEN 'Reading' THEN HighScore
ELSE 0
END AS Reading
, ...
March 9, 2017 at 9:47 am
This looks right:WITH Visits AS (
SELECT
PID
, VisitDate
, VisitName
, LEAD(VisitDate,1,NULL) OVER (PARTITION BY PID ORDER BY VisitDate) AS NextVisitDate
FROM #person
March 9, 2017 at 8:10 am
Viewing 15 posts - 1,681 through 1,695 (of 7,191 total)