Viewing 15 posts - 166 through 180 (of 2,610 total)
IMHO, Steve Collins' post (with a tiny tweak (change fn.n to fn.value) in the 2nd bit of code) contains the winning entries for simplicity IF you don't mind...
February 20, 2024 at 7:10 pm
If you install this DateRange function, this gives certainly the shortest SQL if not the fastest
select CONVERT(date, d.value) Date,
...
February 20, 2024 at 3:53 pm
If you install this DateRange function, this gives certainly the shortest SQL if not the fastest
select CONVERT(date, d.value) Date,
...
February 20, 2024 at 6:18 am
CREATE VIEW must be in a batch by itself, i.e., without GOs, you could create only one view per script.
Since GOs are likely not valid, that may be what...
February 15, 2024 at 6:02 am
We use Windows Task Sheduler and SQL Agent jobs.
February 9, 2024 at 2:32 pm
Well you can test that too.
My point is... the OP hasn't identified the scenario accurately enough to even try to determine which kind of testing needs to be...
January 20, 2024 at 6:50 pm
You could/should test it, here is an example of a test:
set statistics io, time off
set nocount on
go
drop table if exists #a;
create table #a(Id int, Date date, col1...
January 19, 2024 at 3:47 pm
I'm uncomfortable with ChatGPT. I've found that a lot of its answers are believable rather than correct.
Exactly. I summarize that as being "Confidently Incorrect" and, in that area,...
January 19, 2024 at 1:55 pm
Not aimed at the author but aimed at the whole concept... Let's look at the first example prompt in the article...
You are an SQL Server database developer. Assume...
January 19, 2024 at 10:04 am
You have some values in the varchar columns provPhoneMain or provPhoneFax that cannot be cast as bigint.
You could try using TRY_CAST which will return NULL if it cannot be converted:
January 18, 2024 at 11:59 pm
You cannot directly edit files in an S3 bucket.
To edit them you would have to download the file edit it locally then upload the edited file to an S3 bucket.
January 18, 2024 at 6:59 pm
Since you are using SQL Server 2019 you can use STRING_AGG
SELECT DISTINCT
pr2.col1,
ISNULL(STRING_AGG(CASE...
January 15, 2024 at 3:46 pm
SQL Server will use available memory to cache data. So if you allocate more memory to SQL Server it will probably use it. But that doesn't necessarily mean you need...
January 11, 2024 at 8:16 pm
Viewing 15 posts - 166 through 180 (of 2,610 total)