Click here to Skip to main content
15,892,005 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: Would this interest anyone? Pin
PIEBALDconsult11-Nov-21 5:05
mvePIEBALDconsult11-Nov-21 5:05 
GeneralRe: Would this interest anyone? Pin
lmoelleb11-Nov-21 5:12
lmoelleb11-Nov-21 5:12 
GeneralRe: Would this interest anyone? Pin
honey the codewitch11-Nov-21 5:15
mvahoney the codewitch11-Nov-21 5:15 
GeneralRe: Would this interest anyone? Pin
lmoelleb11-Nov-21 5:36
lmoelleb11-Nov-21 5:36 
GeneralRe: Would this interest anyone? Pin
honey the codewitch11-Nov-21 8:44
mvahoney the codewitch11-Nov-21 8:44 
GeneralRe: Would this interest anyone? Pin
lmoelleb12-Nov-21 5:07
lmoelleb12-Nov-21 5:07 
GeneralRe: Would this interest anyone? Pin
PIEBALDconsult11-Nov-21 5:38
mvePIEBALDconsult11-Nov-21 5:38 
GeneralRe: Would this interest anyone? Pin
DerekT-P11-Nov-21 6:08
professionalDerekT-P11-Nov-21 6:08 
Yes. The standard framework I developed and use for pretty much all my web-based apps is access via SPs only; no direct table access at all. Generally I don't need to update multiple rows but I certainly can do, though I prefer to avoid it. If there are multiple updates required then I wrap the lot in a transaction persisted across SP calls. (For one thing, if something fails the webserver then has a much easier time of working out what failed).

And yes, there are also occasions when I need to send delimited lists to an SP (typically keys to match an IN clause) but then I just use a UDF to parse it and return a table result. (And the webserver is responsible for ensuring the list is "clean" wrt whitespace etc).

Conceptually, I'm not sure I'd feel comfortable loading an unverified CSV straight into the database using generic type validation routines. Generally there's more to checking input than just checking field type, and that sort of stuff belongs in the business layer, well away from the database. It feels a bit like this is a workaround to gain direct table access by the backdoor, bypassing the strong typing that SP parameters at least partially enforce.
GeneralRe: Would this interest anyone? Pin
honey the codewitch11-Nov-21 8:46
mvahoney the codewitch11-Nov-21 8:46 
GeneralVeterans Day Pin
jeron111-Nov-21 4:27
jeron111-Nov-21 4:27 
GeneralRe: Veterans Day Pin
dandy7211-Nov-21 5:40
dandy7211-Nov-21 5:40 
GeneralRe: Veterans Day Pin
jeron111-Nov-21 5:43
jeron111-Nov-21 5:43 
GeneralRe: Veterans Day Pin
Richard MacCutchan11-Nov-21 6:00
mveRichard MacCutchan11-Nov-21 6:00 
GeneralRe: Veterans Day Pin
jeron111-Nov-21 6:02
jeron111-Nov-21 6:02 
GeneralRe: Veterans Day Pin
Greg Utas11-Nov-21 8:03
professionalGreg Utas11-Nov-21 8:03 
GeneralRe: Veterans Day Pin
jeron111-Nov-21 9:09
jeron111-Nov-21 9:09 
GeneralRe: Veterans Day Pin
Slow Eddie12-Nov-21 1:49
professionalSlow Eddie12-Nov-21 1:49 
GeneralI know, but I'm old... Pin
Kornfeld Eliyahu Peter11-Nov-21 2:58
professionalKornfeld Eliyahu Peter11-Nov-21 2:58 
GeneralRe: I know, but I'm old... Pin
Richard MacCutchan11-Nov-21 3:07
mveRichard MacCutchan11-Nov-21 3:07 
GeneralRe: I know, but I'm old... Pin
pkfox11-Nov-21 4:29
professionalpkfox11-Nov-21 4:29 
GeneralRe: I know, but I'm old... Pin
Slow Eddie12-Nov-21 1:50
professionalSlow Eddie12-Nov-21 1:50 
GeneralI know I'm old ... Pin
CHill6011-Nov-21 2:37
mveCHill6011-Nov-21 2:37 
GeneralRe: I know I'm old ... Pin
honey the codewitch11-Nov-21 4:35
mvahoney the codewitch11-Nov-21 4:35 
GeneralRe: I know I'm old ... Pin
lmoelleb11-Nov-21 5:03
lmoelleb11-Nov-21 5:03 
JokeRe: I know I'm old ... Pin
DerekT-P11-Nov-21 6:14
professionalDerekT-P11-Nov-21 6:14 

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.