Viewing 15 posts - 46 through 60 (of 2,610 total)
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
IF @DB1 = 'TestDB' USE TestDB
ELSE IF @DB1 = 'ProdDB' USE ProdDB
June 11, 2024 at 4:29 pm
To stop the table locking you could use a rowlock hint:
-- Ensure we are using row-level locking
SELECT @intID = (idPool + 1)
FROM IdConfiguration...
June 11, 2024 at 1:54 pm
Does your dynamic SQL get executed as one string?
e.g.:
SELECT @ENV = 'USE ' + @DB1
SET @ENV = @ENV + CHAR(13) + CHAR(10) + 'SELECT * FROM myTable;'
EXEC...
June 11, 2024 at 1:11 pm
To stop the table locking you could use a rowlock hint:
-- Ensure we are using row-level locking
SELECT @intID = (idPool + 1)
FROM IdConfiguration WITH (ROWLOCK,...
June 11, 2024 at 9:57 am
select @uuuImportID,
1 as hdrid,
line.value('(abcdefIndex)[1]', 'int') as [Index],
...
May 29, 2024 at 3:06 pm
Deleted duplicate
May 29, 2024 at 3:05 pm
Here's just one of the many proofs... Both the direct conversion from DATETIME2 to DATETIME and the faulty answer above produce the "silent failures" that I'm talking about". ...
May 27, 2024 at 6:14 pm
Viewing 15 posts - 46 through 60 (of 2,610 total)