Viewing 15 posts - 3,271 through 3,285 (of 59,098 total)
Just a tweak to Drew's awesome rendition...
Drew uses the MONTH() function. I believe (I've not tested it) that will limit his good code to being used against only 1 year...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2022 at 9:00 pm
If you'd like a tested coded answer, please read and heed the first link in my signature line below.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2022 at 7:57 pm
If the files are to be used with "near enough" version of SQL Server, then using XML, JSON, CSV, or TSV is just nuts. The absolute fastest way to do...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2022 at 5:10 pm
So, enquiring minds want to know, how'd it go on the interview?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 30, 2022 at 3:50 pm
Perhaps you need to right click on the SSMS icon and select "Execute as Administrator".
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2022 at 10:00 pm
I'm really curious about this request. What is the intended use of the computed "Multiplier" column?
If the answer is to determine which day is (for example) "3 business days away", ...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2022 at 5:03 pm
Looks like they fixed the posting problem this morning (fonts, icon menu bar) but they still have problems with email notifications. I only get notifications for people that I follow.
We've...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2022 at 4:59 pm
I've got an SQL database I'm wanting to put in Azure.
WHY? What problem are you trying to solve and why do you think Azure is going to help?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2022 at 4:09 pm
I have a scenario where: a company can have many workers(01,02) & worker can have multiple jobs (jb01, jb02) within the company, and in each job the worker can...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2022 at 4:07 pm
When you open SSMS, you may have to right click on the icon and select "Run as Administrator".
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2022 at 3:04 pm
I looked back through this thread and found the following.
Looks like I could do this:
switchoffset (CONVERT(datetimeoffset, jobstarted), '+04:00')
But how can I get just date\time and automate the offset based...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 29, 2022 at 4:05 am
No guarantees but I'll try to take a look tonight. I'll use your original post as an example. I still maintain that if you ship them with UTC's,...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2022 at 8:52 pm
I would recommend working with the receivers of the data to allow sending UTC directly instead of trying to perform the conversion for them. If you send UTC they...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2022 at 7:33 pm
Could a function be created where I pass in my date and it outputs my desired date
For 2012, yes, but that doesn't change step 1. You need a...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2022 at 6:00 pm
BTw... the easier thing to do would be to convert your local dates and times to UTC and let the users fix their stuff. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
June 28, 2022 at 1:05 am
Viewing 15 posts - 3,271 through 3,285 (of 59,098 total)