Viewing 15 posts - 46 through 60 (of 2,617 total)
Install this TVF.
Then this SQL will do the job
select x.value value1, x.value+1000001 value2
from dbo.GENERATE_SERIES(-999999999,+999999999,1) x
;
July 13, 2024 at 12:35 am
Here you are courtesy of ChatGPT
Heh... Ok... since you brought it up, what prompt(s) did you use?
The key here is, again, the folks answering the questions shouldn't have...
July 12, 2024 at 7:41 pm
Here you are courtesy of ChatGPT
-- Create TableA
drop table if exists TableA
drop table if exists TableB
-- Create TableA
CREATE TABLE TableA (
JoiningID...
July 12, 2024 at 4:55 pm
And yet it's still absolutely stupid about certain "simple" things... In the example below, this is NOT the right way to solve the given problem. Even the note in...
July 8, 2024 at 6:54 pm
It's faster to rebuild indexes offline.
You might also be able to get it to rebuild in parallel which will be faster: https://learn.microsoft.com/en-us/sql/relational-databases/indexes/configure-parallel-index-operations?view=sql-server-ver16
But I think the question needs...
July 2, 2024 at 1:52 pm
.
June 20, 2024 at 2:32 pm
I am looking for With out Union all how to achieve same Query o/p. Any helps highly Appreciated.
Why would you want to do it without a union and in...
June 20, 2024 at 2:30 pm
How to Optimize above 3 Queries into one.
It already is one query.
June 20, 2024 at 2:24 pm
I'm not sure if this will fix it but the first thing I would try is to make sure the statistics have been updated:
UPDATE STATISTICS...
June 19, 2024 at 4:29 pm
I'm not sure if this will fix it but the first thing I would try is to make sure the statistics have been updated:
UPDATE STATISTICS dbo.mytable WITH...
June 19, 2024 at 3:29 pm
Upgrade to SQL2019 from 2012 Query is taking time, Need Query Optimization steps and Pre requisites to optimize Query Performance and CPU Usage
Is it just one query that is...
June 16, 2024 at 10:15 pm
It's deferred name resolution.
You can create a procedure if the table does not exist but not if the table exists and the columns do not exist.
June 12, 2024 at 3:03 pm
IF @DB1 = 'TestDB' USE TestDB
ELSE IF @DB1 = 'ProdDB' USE ProdDB
don't know what tool you are using to execute the above - but...
June 11, 2024 at 6:20 pm
Viewing 15 posts - 46 through 60 (of 2,617 total)