Viewing 15 posts - 451 through 465 (of 1,403 total)
Similar to kaj's code
with unq_prs(GivenPartNumber_Non,vcompanyid) as (
select GivenPartNumber_Non,vcompanyid
from #notmappedsources
group by GivenPartNumber_Non,vcompanyid
having...
February 23, 2022 at 11:55 pm
Imo three triggers would be preferred. Right from the start it's confusing because it's a "catch all" for the 3 scenarios, INSERT, DELETE, UPDATE. In code each scenario is intended...
February 20, 2022 at 1:56 pm
The first CTE (named 'UDT_CKB_SNAPSHOT') contains GROUP BY but no HAVING clause and no aggregate function(s) in the select list. It's equivalent to SELECT DISTINCT which is much more readable. ...
February 18, 2022 at 12:34 pm
Maybe try it without the VIEW
February 17, 2022 at 2:12 pm
Perhaps the spaces are present in the input data. One quick way to get past the issue could be to import into a staging table and then use a query...
February 16, 2022 at 9:22 pm
The thread is a duplicate. Regarding just the first 4 lines of the procedure
Begin
-- these 2 should always be set in ALL sp's
-- set nocount on;...
February 16, 2022 at 7:21 pm
It happened to be an article (which I vote yes also to keeping open) but idk it could've been a regular forum post. Those come up in searches. A new...
February 15, 2022 at 10:18 pm
So a lot of folks have written articles where no one has posted to the discussions in well over a year. If someone reads and article and has a...
February 15, 2022 at 3:50 pm
After following Ken and Jeff's advice first maybe have a look at the error handling and flow of control. You've got TRY/CATCH all over the place and GOTO and it's...
February 14, 2022 at 8:44 pm
The explanation seems somewhat open to interpretation. Maybe you could explain why Brazil's ItemCount is 300 and not 500? If 500 is the correct number for Brazil then maybe something...
February 12, 2022 at 12:19 pm
You have an explicit transaction called from within BEGIN TRY/END TRY yet the ROLLBACK (which presumably corresponds to the transaction) is in the CATCH block. Checking XACT_STATE in...
February 7, 2022 at 5:27 pm
... has failed throwing:
'Error converting data type varchar to numeric.'
The where clause is comparing a nvarchar field with a simple three character text string, no numerics to be seen...
Shaunos
Cheers...
February 6, 2022 at 1:40 pm
Hello Everyone,
I just started a developing a new application for hospitals (for maintaining hospital staff, patient, appointments etc.). I started with the database part first.
I will use APIs as...
February 5, 2022 at 2:32 pm
I totally agree, Grant.
I'm looking at introducing "software engineering" as a topic to discuss at work with the data engineers, and introduce them to all of those concepts like...
January 29, 2022 at 2:11 pm
Viewing 15 posts - 451 through 465 (of 1,403 total)