Viewing 15 posts - 1 through 15 (of 76 total)
Scott P. - Just so I get a better understanding, had the OP used a TRY/CATCH set of blocks, would the cancellation of the query in SSMS have triggered...
August 27, 2022 at 4:36 pm
my mind says treat UNKNOWN as FALSE
Nope, as people have stated about that. In this area, it's your mind that's wrong. NULL ("UNKNOWN") is obviously not...
June 28, 2022 at 2:55 pm
Agree, NOT(UNKNOWN) cannot be anything apart from UNKNOWN.
It is a mindset thing, and when I write an AND or OR my mind says treat UNKNOWN as FALSE and that works...
June 28, 2022 at 1:29 pm
I suggest you get out of the habit of writing = NULL. Instead, write IS NULL. NOT is very useful, do not discard it!
It's only an example to get...
June 28, 2022 at 12:46 pm
Apologies for writing unknown several different ways!
June 28, 2022 at 11:15 am
But I don't know the rest, Jeff - what do you mean?
June 19, 2022 at 10:32 am
I use stored procedures for ease of amending. But only for more involved queries, and very rarely for the queries that build the SSRS parameter lists of values. The one...
June 12, 2022 at 4:46 pm
That would actually be easy for me to implement as so happens the proc is a loop - for batch processing with each batch in a transaction. As long as...
February 10, 2022 at 3:07 pm
Great, thanks both. Should be able to do it now. Want to avoid looking in on Monday morning and finding the job is still running!
February 10, 2022 at 2:58 pm
Thanks Grant. I presume there are sys tables for jobs and job activity. Not sure if I then do sp_stop_job or KILL process.
February 10, 2022 at 2:52 pm
Should have added. The job is simply executing a stored procedure.
February 10, 2022 at 11:40 am
SELECT 1 SELECT 2
This parses and executes in SSMS with only a space as separator.
February 3, 2022 at 12:57 pm
How does the parser separate statements when semicolons are not used?
February 3, 2022 at 9:25 am
If the semicolon is required for some (new) statements, consistency would mean using it throughout. But we have a mixture and I can't see that changing.
I know that the semicolon...
February 1, 2022 at 8:32 pm
Thanks.
FROM dbo.tblOrders t
INNER JOIN deleted d ON d.OrderID=t.OrderID
I was thinking it was:
FROM dbo.tblOrders t
LEFT JOIN deleted d ON d.OrderID=t.OrderID
or
FROM inserted i
LEFT JOIN deleted d ON i.OrderID=d.OrderID
January 20, 2022 at 6:55 pm
Viewing 15 posts - 1 through 15 (of 76 total)