Viewing 15 posts - 3,721 through 3,735 (of 59,067 total)
Since you're only checking for an hour range, you can use BETWEEN. It's just as accurate and easier to code and read.
I agree that it's real tempting to use...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 7:28 pm
I have to ask... why are you trying to use PowerShell to do this? And you have the comment "# Loop through all tables and export a CSV of the...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 6:59 pm
Shifting gears a bit... the following message started showing up on my machine some time ago (seems like at least a week) on every post thread and ONLY...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 4:30 pm
below is to get business hours data
SELECT * FROM #TEMP WHERE CAST(LOADDATE AS TIME) BETWEEN '9:00:00' AND '17:59:59'
Thanks for your help
My recommendation is to get out of the habit...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 4:25 pm
To be sure, my laugh wasn't about your bit of misfortune. I was laughing because it appears to be yet another limitation of Azure. 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 4:02 pm
It sounds like you have to rebuild the "proxy" account to make it work.
And using xp_CmdShell isn't a "terrible security practice". Giving non-DBA users the privs to run it directly...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 2:02 pm
BWAAA-HAAA-HAAA!!! (Sorry... couldn't help the laugh).
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 1:55 pm
Congratulations on the retirement. I've just about given up on SO. Discussions are discouraged... unless you happen to be a moderator. 🙁
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 1:46 pm
Shifting gears a bit... the following message started showing up on my machine some time ago (seems like at least a week) on every post thread and ONLY for this...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 10:26 am
This all seems like it''s "just" a process timing issue and you haven't figured out the actual cause, yet. Is the process the creates the row actually finishing on time...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 10:19 am
Hi there,
I have task to select only data falls within business hours, meaning 9 am to 5 pm
CREATE TABLE #TEMP
(ID INT, LOADDATE DATETIME)
INSERT INTO #TEMP
SELECT 1,'2022-03-24...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 2:14 am
Just store everything as FLOAT. Integers are exact when converted to Floats so long is you don't violate the precision. Better yet, change both to be Decimal(38,15).
Then ask yourself if...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 1:59 am
SPAM is a problem now, and it's not a simple one. I've filed a ticket to work with the third party on what is not catching more than it...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 1:35 am
"Give 'em the razor; sell 'em the blades"
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 12:54 am
Thank all of you folks for the congrats and the well wishes. I'm just one person, though. This site wouldn't be worth a hill of beans without the rest of...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 25, 2022 at 12:18 am
Viewing 15 posts - 3,721 through 3,735 (of 59,067 total)