Viewing 15 posts - 61 through 75 (of 2,617 total)
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
Yes, well ChatGPT generates its responses one word at a time, using each preceding word and the context of the conversation, including its own partially completed sentences, to...
May 27, 2024 at 3:37 pm
Heh... ask it how to convert a DATETIME2 value to a DATETIME value in SQL Server. 😉
I haven't got Copilot, but I thought I'd try it on...
May 27, 2024 at 3:17 pm
Deleted duplicate posting
May 27, 2024 at 6:19 am
Heh... ask it how to convert a DATETIME2 value to a DATETIME value in SQL Server. 😉
I haven't got Copilot, but I thought I'd try it on ChatGPT
May 27, 2024 at 6:18 am
After rereading the original post I now understand about the INTERVAL_THICKNESS, this query works using a case statement to calculate the INTERVAL_THICKNESS
;WITH fn as
(
...
May 8, 2024 at 12:09 pm
However it looks like it is locking on the LITH1 of the 1 meter tally. I need somehow to instruct if there are multiple LITH1 rows within the meter,...
May 8, 2024 at 9:05 am
Viewing 15 posts - 61 through 75 (of 2,617 total)