Viewing 15 posts - 2,926 through 2,940 (of 59,098 total)
I need to create a query where the first of March will be Week 1 starting from Monday to Sunday from the date. If the first of the month...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2022 at 6:54 pm
In the past, we've found a lot of problems with automated deployments that can be described by one, single, four letter word...
"Oops". 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2022 at 4:47 pm
I know... I'm weird... I couldn't stop laughing as I read the following article about AI and on-prem. I mean who knew that computationally intense processes on the cloud might...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2022 at 4:42 pm
The Seek is probably a Seek followed by a range scan of the full table, which probably has little if any advantage over the scan. I only use the Execution...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2022 at 2:26 am
Martin, your solution worked.
Thanks,
So I can learn a bit, which one of Martin's replies does that cover?
--Jeff Moden
Change is inevitable... Change for the better is not.
August 25, 2022 at 2:02 am
On the formatting thing, you could try a free website such as PoorSQL.com with the understanding that there is no support if something goes awry. There are other sites that...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2022 at 7:28 pm
And, no... I wouldn't do a delete in batches. You end up blowing out the log file even with that and you end up with no temporary backup if something...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2022 at 7:15 pm
I just want to make sure we get this right. You're saying that you want to eliminate all book details for books that DO exist in the books table?
I just...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2022 at 7:14 pm
How to get records for the first 15 days of the month. please suggest
WHERE OrderDate<=DATEADD(day, 15, GetDate())
Phil's code works perfectly if you can guarantee that the OrderDate column does...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2022 at 6:20 pm
For now my goal is to fix my SSIS projects which are not giving the desired result.
I have no quantitative numbers on what I'm about to say but... I've...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2022 at 5:29 pm
To get the Orders where the OrderDate is in the first 15 days of a month:
WHERE DAY(OrderDate) <=15
To get the Orders where the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2022 at 5:17 pm
Also, check with the other Developers in the company. You should be checking your code into some form of source control. They should also have a "onboarding" process that lets...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2022 at 5:01 pm
Jeff, format date is not the issue.
If you are willing to waste your time, do it on the real problem, the variable is the issue.
DECLARE @todays AS VARCHAR(20) SELECT...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 24, 2022 at 2:55 am
Hi, this is what I am trying to do,
DECLARE @todays AS VARCHAR(20) SELECT @todays = format(cast(getdate() as date),'yyyyMMdd')
EXEC xp_cmdshell 'copy C:\Test\@todays\ *.* C:\Newtest\';
But, I can figure out the syntax...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 23, 2022 at 8:09 pm
Thanks for your reply Phil, Someone suggested PIVOT would do this, so I was trying to figure out how to do that. While this would be the answer if...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 23, 2022 at 8:04 pm
Viewing 15 posts - 2,926 through 2,940 (of 59,098 total)