Viewing 15 posts - 3,181 through 3,195 (of 59,086 total)
Here's another listing that not only lists the fixed holidays that always occur on the same day of every year but also how to calculate the "movable" holidays.
https://en.wikipedia.org/wiki/Public_holidays_in_Portugal
Here's one...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2022 at 3:54 pm
By now, you know the solution.
Want to make it even better, do not use a SCALAR value function, but turn it into a (in-line)Table valued function ! In most...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2022 at 3:44 pm
The correct answer should have been... find the person that wrote the trigger with an empty CATCH and have a nice pork chop dinner with them. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2022 at 3:29 pm
From the Aritcle:
What work is suited for live, in-person interaction? Which aspects of your job benefit from seeing others face-to-face?
BWAAA-HAAA-HAAA!!! I can think of no thing that would prove...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2022 at 3:23 pm
Can you just create a linked server in SSMS, then just do an "insert into select * from" command in SSMS?
If you cannot create a linked server then, if...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2022 at 3:14 pm
My question would be, why are you using two tables to do one thing? It looks to me like it should be a single table because there appears to be...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2022 at 3:02 pm
Even though the MS documentation states that literals longer than 4000 characters are cast as NVARCHAR(MAX) this doesn't seem to be the case.
Constants (Transact-SQL) - SQL Server |...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 15, 2022 at 4:08 am
I've searched for a more recent document that mentions performance in terms of overhead percentages but found none. I wouldn't expect to see such a thing from future MS documentation...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2022 at 5:08 pm
Write-output from the PS script:
INSERT INTO XML_REPORT_ALL ( logdate, Report, runnum, servername ) VALUES ( '07/11/2022 11:43:12','<LOG><ALG><ROW><CUSTOMER>... many more info here..... TYPE><','5','COURSE-SQLSERVER' )
I guess I'll never understand why people...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2022 at 4:58 pm
To add to what ratbak and Grant have stated, the other thing that paying attention to the order of the criteria in the WHERE helps with troubleshooting. Yeah... I know...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2022 at 4:31 pm
No: "Scalar functions must be invoked by using at least the two-part name of the function (<schema>.<function>)"
Why are you even trying to work around this? You should preface...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2022 at 4:23 pm
I'm truly humbled by your thoughtful comments and the references to a couple of articles. I really appreciate the feedback and... I'm glad I could make you laugh! 😀 I'm...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2022 at 3:57 pm
How to loop the data based on start and end dates below?
Declare @StartDate Datetime Declare @EndDate Datetime
Select @StartDate = '20220611' SET @EndDate = GETDATE()
WHILE @StartDate < = @EndDate BEGIN...
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2022 at 3:45 pm
Thanks for the feedback Steve.
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2022 at 3:23 pm
Did that work for you?
--Jeff Moden
Change is inevitable... Change for the better is not.
July 14, 2022 at 3:22 pm
Viewing 15 posts - 3,181 through 3,195 (of 59,086 total)