Click here to Skip to main content
15,891,708 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralBeing Database-Agnostic - whats the Problem here? Pin
jhwurmbach31-Aug-07 3:08
jhwurmbach31-Aug-07 3:08 
GeneralRe: Being Database-Agnostic - whats the Problem here? Pin
KaЯl7-Sep-07 14:27
KaЯl7-Sep-07 14:27 
GeneralRe: Get me a count.... Pin
Ted Ferenc31-Aug-07 6:18
Ted Ferenc31-Aug-07 6:18 
GeneralRe: Get me a count.... Pin
Rajesh R Subramanian2-Sep-07 23:39
professionalRajesh R Subramanian2-Sep-07 23:39 
GeneralRe: Get me a count.... Pin
Ted Ferenc3-Sep-07 0:24
Ted Ferenc3-Sep-07 0:24 
GeneralI came across this one too Pin
r_maiya29-Aug-07 10:30
r_maiya29-Aug-07 10:30 
GeneralRe: I came across this one too Pin
PIEBALDconsult29-Aug-07 10:48
mvePIEBALDconsult29-Aug-07 10:48 
GeneralExcel Pin
gantww28-Aug-07 9:52
gantww28-Aug-07 9:52 
Ok,
This is a coding horror, but this one belongs to Microsoft. As it turns out, if you are trying to connect to an Excel spreadsheet using the OLEDB driver, it tries to infer the datatypes of the columns in your spreadsheet based on the first few (8 by default) rows. All well and good, except when the first 8 rows have numeric values for a particular column, but some of the others have alphanumeric. Then, the driver just inserts nulls (because data integrity isn't important).

Now, you can somewhat fix this with a change to a couple of registry keys and a change to your connection string, but it seems really dumb to have to do that.

Check this craziness out.
http://www.sqldts.com/254.aspx

And no, I'm not submitting this to get help. I'm doing the registry stupidity instead and hoping that it doesn't randomly get broken by admins on the web server.
GeneralRe: Excel Pin
PIEBALDconsult28-Aug-07 10:05
mvePIEBALDconsult28-Aug-07 10:05 
AnswerRe: Excel Pin
chrishuff28-Aug-07 10:28
chrishuff28-Aug-07 10:28 
GeneralInfrastructure... just because. Pin
Rob Achmann24-Aug-07 5:47
Rob Achmann24-Aug-07 5:47 
GeneralRe: Infrastructure... just because. Pin
Lutosław25-Aug-07 8:29
Lutosław25-Aug-07 8:29 
GeneralRe: Infrastructure... just because. Pin
Burnsys228-Aug-07 2:26
Burnsys228-Aug-07 2:26 
GeneralWow Pin
eggsovereasy23-Aug-07 4:36
eggsovereasy23-Aug-07 4:36 
GeneralRe: Wow Pin
DavidNohejl23-Aug-07 4:57
DavidNohejl23-Aug-07 4:57 
GeneralRe: Wow Pin
eggsovereasy23-Aug-07 8:12
eggsovereasy23-Aug-07 8:12 
GeneralRe: Wow Pin
J a a n s23-Aug-07 21:25
professionalJ a a n s23-Aug-07 21:25 
GeneralRe: Wow Pin
eggsovereasy24-Aug-07 9:15
eggsovereasy24-Aug-07 9:15 
GeneralRe: Wow Pin
Lutosław25-Aug-07 8:34
Lutosław25-Aug-07 8:34 
GeneralMy boss! [modified] Pin
Burnsys218-Aug-07 14:56
Burnsys218-Aug-07 14:56 
GeneralRe: My boss! Pin
BadKarma18-Aug-07 21:27
BadKarma18-Aug-07 21:27 
GeneralRe: My boss! Pin
Pascal Ganaye20-Aug-07 3:17
Pascal Ganaye20-Aug-07 3:17 
GeneralRe: My boss! Pin
KarstenK20-Aug-07 1:21
mveKarstenK20-Aug-07 1:21 
JokeRe: My boss! Pin
martin_hughes20-Aug-07 5:29
martin_hughes20-Aug-07 5:29 
GeneralRe: My boss! Pin
StevenWalsh20-Aug-07 5:45
StevenWalsh20-Aug-07 5:45 

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.