Viewing 15 posts - 5,146 through 5,160 (of 59,089 total)
That might also be the reason why they've done the RBAR thing in the trigger. They don't want to have everything during and Insert or Update roll back...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 7:54 pm
As it's written, it returns either a NULL or and empty string. I think someone forgot to complete the 2nd operand of the substring, which should probably equate...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 7:37 pm
That might also be the reason why they've done the RBAR thing in the trigger. They don't want to have everything during and Insert or Update roll back if something...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 7:19 pm
I would think that a trigger to try to catch errors in other places would be mostly useless for a lot of code but I don't see anything wrong with...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 7:15 pm
I just took a glance at the trigger. The size of the thing is truly horrendous.
If it's for a table with a large number of columns and it's an...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 2:39 pm
Brief tangent into real SQL stuff...
Has anyone ever heard of table triggers not firing for every row if you do set-based updates to records?
Our vendor sent us code for...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 1:18 pm
Ok. Mostly done. We still need to add some "pretty" error handling and the file move-after-imported thing but this is working quite nicely and it does tolerate errors along with...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 6:08 am
Sorry. I've not had much time to work on this. Working on it now. Having some fairly good success. I'm also making sure that it's fully documented so that you...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 3:32 am
Perfect. I think we may have a little work to do on the Condit but check this out. Remember, don't think about what you want to do to a row......
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 2:43 am
I work on sql server 2012 I don't understand condition below do this condition as below
case WHEN Po.PortionKey LIKE '%[_]%'
THEN
SUBSTRING(Po.PortionKey, LEN(LTRIM(RTRIM(Po.PortionKey)))+1,LEN(LTRIM(RTRIM(Po.PortionKey)))) end
as modifiedportionkey
what...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 14, 2021 at 12:54 am
Thanks, Scott. The readily consumable test data you provided had a couple of bugs in the CREATE TABLE statements. For example, there is no such datatype as "NVCHAR"... that had...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 13, 2021 at 9:23 pm
Ok apologies I am new to this. On another note how do you find a tables details, like column names and data type (for example in SAS you have...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 13, 2021 at 7:24 pm
You never came back to say what you folks ended up doing nor how it worked or....
I can't speak for the others but I'd find it very interesting. Thanks.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 13, 2021 at 4:19 pm
My goal is to get the results below. Trying to get the nearest date and result from the #Data table where the resultdate<=ProcDate. An outer apply is taking 4...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 9:33 pm
I mostly agree with Scott and Frederico on this subject... I almost always force LOBs to be out of row for a table. I'll add that I also generally default...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 9:30 pm
Viewing 15 posts - 5,146 through 5,160 (of 59,089 total)