Viewing 15 posts - 5,161 through 5,175 (of 59,101 total)
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
partially incorrect - reading the manual helps so do read the "Create table" statement on the manuals where you may learn something.
and having (max) data inrow is in some...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 8:15 pm
Jeff, one of the best things I ever heard about comments is this:
Comments don't exist to describe what the code is doing. They exist to describe what the...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 7:57 pm
Hi,
I've recently setup VPN on our AWS account and had my AWS bill go up by $200. It appears that you pay for it even when nobody uses it. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 11, 2021 at 3:39 pm
Viewing 15 posts - 5,161 through 5,175 (of 59,101 total)