Click here to Skip to main content
15,895,709 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Obscure paths to serious bugs Pin
theoldfool10-Aug-21 12:13
professionaltheoldfool10-Aug-21 12:13 
GeneralRe: Obscure paths to serious bugs Pin
englebart10-Aug-21 14:10
professionalenglebart10-Aug-21 14:10 
GeneralRe: Obscure paths to serious bugs Pin
Ron Anders10-Aug-21 15:22
Ron Anders10-Aug-21 15:22 
GeneralRe: Obscure paths to serious bugs Pin
Duncan Edwards Jones10-Aug-21 22:31
professionalDuncan Edwards Jones10-Aug-21 22:31 
GeneralRe: Obscure paths to serious bugs Pin
Member 916705710-Aug-21 23:14
Member 916705710-Aug-21 23:14 
GeneralRe: Obscure paths to serious bugs Pin
Slow Eddie11-Aug-21 2:04
professionalSlow Eddie11-Aug-21 2:04 
GeneralRe: Obscure paths to serious bugs Pin
Ed Attfield11-Aug-21 3:06
Ed Attfield11-Aug-21 3:06 
GeneralRe: Obscure paths to serious bugs Pin
MarkTJohnson11-Aug-21 2:40
professionalMarkTJohnson11-Aug-21 2:40 
I work on an ETL process taking data from a source database into a reporting database. We offer a custom column table where the client can specify that certain data from the source be placed in certain columns in the reporting table. The ETL process USED to create a temporary table to collect the source data and then run a SQL statement with a PIVOT clause to put the data into the custom columns. A certain client claimed they hadn't been getting any new custom records for a while. It took several attempts by a couple of devs to figure out what was happening. It finally fell to me to take a turn.
Since we couldn't see what the SQL with the PIVOT was doing because we didn't have access to the temp table as they vanish after the session, I pushed to change the temp table to become a regular persistent table. Once that was approved and pushed out, I was able to run the SQL statement and the statement DIDN'T produce any records to be inserted into the custom table. Poking around and trying different things figured out that it was failing because the list of custom columns stored for the client was like "Custom_1, Custom_2, Custom_3' but the actual columns were names custom_1, custom_2, custom_3.
Something changed in an update to SQL Server such that the PIVOT statement had become case sensitive so Custom_1 no longer matched custom_1. Adding a tolower() in the SQL statement solved the problem.
I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.

GeneralRe: Obscure paths to serious bugs Pin
Rich Shealer11-Aug-21 3:06
Rich Shealer11-Aug-21 3:06 
GeneralRe: Obscure paths to serious bugs Pin
davecasdf11-Aug-21 3:06
davecasdf11-Aug-21 3:06 
GeneralRe: Obscure paths to serious bugs Pin
obermd11-Aug-21 3:20
obermd11-Aug-21 3:20 
GeneralRe: Obscure paths to serious bugs Pin
MarkTJohnson11-Aug-21 4:37
professionalMarkTJohnson11-Aug-21 4:37 
GeneralRe: Obscure paths to serious bugs Pin
Matthew Dennis11-Aug-21 7:07
sysadminMatthew Dennis11-Aug-21 7:07 
GeneralThought of the Day Pin
OriginalGriff10-Aug-21 4:30
mveOriginalGriff10-Aug-21 4:30 
GeneralRe: Thought of the Day Pin
obermd10-Aug-21 4:33
obermd10-Aug-21 4:33 
GeneralRe: Thought of the Day Pin
AndyChisholm11-Aug-21 5:16
AndyChisholm11-Aug-21 5:16 
GeneralRe: Thought of the Day Pin
Mike Hankey10-Aug-21 4:40
mveMike Hankey10-Aug-21 4:40 
GeneralRe: Thought of the Day Pin
Cp-Coder10-Aug-21 6:12
Cp-Coder10-Aug-21 6:12 
GeneralRe: Thought of the Day Pin
Mike Hankey10-Aug-21 6:18
mveMike Hankey10-Aug-21 6:18 
GeneralRe: Thought of the Day Pin
W Balboos, GHB10-Aug-21 7:59
W Balboos, GHB10-Aug-21 7:59 
GeneralRe: Thought of the Day Pin
Cp-Coder10-Aug-21 13:53
Cp-Coder10-Aug-21 13:53 
GeneralRe: Thought of the Day Pin
W Balboos, GHB10-Aug-21 5:17
W Balboos, GHB10-Aug-21 5:17 
GeneralRe: Thought of the Day Pin
Richard Andrew x6410-Aug-21 10:20
professionalRichard Andrew x6410-Aug-21 10:20 
GeneralRe: Thought of the Day Pin
MKJCP11-Aug-21 1:37
MKJCP11-Aug-21 1:37 
GeneralRe: Thought of the Day Pin
Slow Eddie11-Aug-21 2:08
professionalSlow Eddie11-Aug-21 2:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.