Viewing 15 posts - 1,681 through 1,695 (of 7,187 total)
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
Yes, it's possible. You use output parameters to get the values from your different connection into variables, then you use those same variables as input parameters to your delete task....
March 9, 2017 at 7:29 am
Search this site for "splitter functions". You can use a splitter function with "/" as the delimiter.
John
March 9, 2017 at 7:06 am
Phani
I don't suppose anyone has the sa password?
Changing the service account to adm may automatically give it sysadmin access, but I'm not sure of that. You...
March 8, 2017 at 9:02 am
March 8, 2017 at 8:45 am
Viewing 15 posts - 1,681 through 1,695 (of 7,187 total)