Viewing 15 posts - 1 through 15 (of 1,464 total)
This tweak seems to solve the issue
Select @requested_qty = CAST(@requested_qty as float) * (@conv_fact_nr /@conv_fact_dr)
September 19, 2025 at 8:23 am
Just ask copilot to look at all of the files in your solution and suggest potential performance improvements.
To be honest, I would not expect any useful feedback from a question...
September 11, 2025 at 1:32 pm
Trying to optimize something just because is like trying to skate uphill into a blizzard.
As Brent Ozar keeps reminding us ... "What problem are you trying to solve?"
Every optimization comes...
September 11, 2025 at 10:28 am
Without data to test, maybe this will do the trick
SELECT f.INVG_ID
, MaxAgentSFRDt ...
July 17, 2025 at 5:25 am
SSMS 21 allows you to integrate directly in to GIT.
July 14, 2025 at 5:34 am
It looks like a sophisticated plug for their company, with 2 links to their site
July 11, 2025 at 10:02 am
A clustered index may appear to retain the sort order. However, there is zero guarantee that it will always be sorted correctly.
The ONLY way to guarantee sort order is to...
July 1, 2025 at 6:16 am
Agreed. But now I am no longer getting email notifications on threads that I reply to.
June 20, 2025 at 8:17 am
Consider a table like this
CREATE TABLE dbo.MyTable (
ID int NOT NULL...
June 19, 2025 at 7:05 am
Why add an IDENTITY? You can use a SEQUENCE object, and set it as the default value for the field. Then you dont need to change anything else. You can...
June 19, 2025 at 6:34 am
It's a bit long-winded, but this is what I came up with
DECLARE @TestData table (id int, dateVal varchar(12));
INSERT INTO @TestData ( id, dateVal )
VALUES ( 1, '00:02:03:123'...
June 11, 2025 at 10:25 am
You need to first cast the string to a format that is recognisable to SQL
Something like this
DECLARE @SourceTable table (ANNOUNCE_DATETIME varchar(50));
INSERT INTO @SourceTable (ANNOUNCE_DATETIME)
VALUES ( '"20180919T201400+0000"' )
...
June 4, 2025 at 5:54 am
Try something along these lines ...
WITH cteDiff (
SELECT A, C, D, E
FROM [Database].dbo.[Table]
WHERE B ...
June 3, 2025 at 5:51 am
Try something like this
if object_id('tempdb..#temp') is not null
drop table #temp;
GO
create table #temp
(
date datetime,
category varchar(3),
...
April 9, 2025 at 3:09 pm
Be careful with global temp tables.
Multiple SPIDs could end up tripping over each other, as they can all see the global temp table.
April 9, 2025 at 2:45 pm
Viewing 15 posts - 1 through 15 (of 1,464 total)