Viewing 15 posts - 361 through 375 (of 4,087 total)
Certain errors by default won't fail the entire transaction/batch. Before the transaction, use:
SET XACT_ABORT ON
to make SQL fail the entire transaction if an error like that occurs.
You should get...
October 15, 2019 at 10:01 pm
You've been around long enough to know that you should use the Insert/edit code sample
command.
Drew
October 15, 2019 at 9:57 pm
In my experience, you are correct. SSRS is the least flexible of the reporting tools that I have used. This is how I would rank the ones that I have...
October 15, 2019 at 3:38 pm
Please use the Insert/edit code sample
at the top of the box where you enter text to post. It retains your formatting.
Because you didn't use it, your formatting is all...
October 11, 2019 at 2:27 pm
I've seen several posts where people think that STUFF()
is doing concatenation, so I'm wondering if the request was really for how to use XML concatenation. Any sense from the...
October 10, 2019 at 6:51 pm
And if my suggestions are broken, are so bad, why do the recent DATE and DATETIME2(n) data types default to it?
You're confusing the data layer with the presentation layer. ...
October 10, 2019 at 6:44 pm
Joe, You would take up an ANSI/ISO standard with Microsoft, because they are not complying with the standard and you want them to comply. Until they do, stop pushing the...
October 10, 2019 at 2:12 pm
3) They are not language dependent
This is demonstrably FALSE. You have been told repeatedly that this is false. If you don't like it take it up with Microsoft. Until...
October 9, 2019 at 9:54 pm
Use NULLIF()
to replace the -1 with a NULL. You can then optionally provide a specific date to replace NULL values.
Drew
October 9, 2019 at 2:49 pm
You're using the lazy method of creating a temp table. Instead of using SELECT
/INTO
you should be creating the table and then using INSERT
/SELECT
.
DECLARE @ProcessID TINYINT =...
October 8, 2019 at 9:47 pm
But it's easy enough to clean up. Just REPLACE(REPLACE(@sql, '1=1 AND ', ''), 'WHERE 1=1', '')
. So if there are additional conditions, you remove the 1 = 1...
October 7, 2019 at 7:14 pm
This site is specifically for SQL Server (T-SQL). I could tell you how to approach this in T-SQL, but I don't know whether that solution will translate to PL/SQL.
The T-SQL...
October 7, 2019 at 2:55 pm
Thom A wrote:OH gods, it has a
WHERE 1=1
clause too. ??This is likely built dynamically, so the 1=1 provides a basis for the query.
But it's easy enough to clean...
October 7, 2019 at 2:40 pm
Clean up your code and make sure that it runs. I stopped trying to fix your code after the third error. Also use the insert/edit code sample
when inserting code. ...
October 4, 2019 at 6:00 pm
Viewing 15 posts - 361 through 375 (of 4,087 total)