Viewing 15 posts - 436 through 450 (of 2,645 total)
The DBA's right about the concurrency issue.
Please be specific as to what kind of blocking occurs and how long it actually lasts.
Then, let's see some proof...
March 30, 2023 at 2:10 pm
Just wondering what is the point of @Period in function fn_TableByPeriod?
@jonathan-2 AC Roberts
What is it that you are wondering about in this regard?
Alter FUNCTION fn_TableByPeriod(
@Period...
March 28, 2023 at 10:48 pm
Msg 156, Level 15, State 1, Line 46 Incorrect syntax near the keyword 'WITH'.
Did you terminate the previous statement with a semicolon?
March 28, 2023 at 3:50 pm
Your subquesry:
SELECT MAX([Datetime])
FROM [mydbtemp]
WHERE [Tagvalue] = 2
AND [Datetime] BETWEEN '2023-02-01 01:00:00' AND '2023-02-05 20:00:00'
returns '2023-02-03 07:00:00.000'
So your query is equivalent to...
March 27, 2023 at 2:30 pm
Just wondering what is the point of @Period in function fn_TableByPeriod?
March 27, 2023 at 8:40 am
SELECT [Datetime]
FROM [mydbtemp]
WHERE [Tagvalue] = 1
AND [Datetime] > (SELECT MAX([Datetime])
FROM [mydbtemp]
WHERE [Tagvalue] = 0
AND [Datetime] BETWEEN '2023-02-01 01:00:00' AND '2023-02-05...
March 26, 2023 at 6:58 pm
The table you are selecting from (my_table) is not the table you have created (mydbtemp). Also the column names are different.
I think you meant to put this as your query:
March 26, 2023 at 2:25 pm
Serious "chicken dinner" there for performance, Jonathan... here are the stats from a test on a million rows of 16 hex digits (8 bytes)...
SQL Server...
March 16, 2023 at 2:04 am
Serious "chicken dinner" there for performance, Jonathan... here's stats from a test on a million rows of 16 hex digits (8 bytes)...
SQL Server Execution Times:
...
March 15, 2023 at 9:25 pm
That's because bigint stores integers as Two's complement, negative numbers need 2^64 (18446744073709551616) added to them to represent the number as an unsigned int.
March 15, 2023 at 8:47 pm
That's because bigint stores integers as Two's complement, negative numbers need 2^64 (18446744073709551616) added to them to represent the number as an unsigned int.
SELECT...
March 15, 2023 at 1:27 pm
I would guess your trigger should look something like this:
CREATE TRIGGER software_on_install_fill_in
ON software
FOR INSERT, UPDATE
AS BEGIN
SET NOCOUNT ON
UPDATE...
March 14, 2023 at 5:00 pm
It would help if you included the table ddl for package and software.
March 14, 2023 at 4:21 pm
SELECT ID
FROM ExampleTable
GROUP BY ID
HAVING MAX(CASE WHEN Description = 'Apex' THEN 1 ELSE 0 END) = 0 OR
MAX(CASE WHEN Description = 'BILL'...
March 13, 2023 at 3:55 pm
It seems to be ordered by original post date descending.
Active Threads is ordered by last post date descending.
March 13, 2023 at 3:50 pm
Viewing 15 posts - 436 through 450 (of 2,645 total)