Click here to Skip to main content
15,893,814 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: Bless SQL Pin
Jörgen Andersson31-Oct-21 21:39
professionalJörgen Andersson31-Oct-21 21:39 
GeneralRe: Bless SQL Pin
honey the codewitch31-Oct-21 21:40
mvahoney the codewitch31-Oct-21 21:40 
GeneralRe: Bless SQL Pin
Jörgen Andersson31-Oct-21 22:31
professionalJörgen Andersson31-Oct-21 22:31 
GeneralRe: Bless SQL Pin
honey the codewitch1-Nov-21 3:45
mvahoney the codewitch1-Nov-21 3:45 
GeneralRe: Bless SQL Pin
Jörgen Andersson1-Nov-21 5:36
professionalJörgen Andersson1-Nov-21 5:36 
GeneralRe: Bless SQL Pin
honey the codewitch1-Nov-21 6:12
mvahoney the codewitch1-Nov-21 6:12 
GeneralRe: Bless SQL PinPopular
PIEBALDconsult31-Oct-21 15:17
mvePIEBALDconsult31-Oct-21 15:17 
GeneralRe: Bless SQL Pin
honey the codewitch31-Oct-21 16:30
mvahoney the codewitch31-Oct-21 16:30 
There's a very legitimate use case for it when you want to validate denormalized string fields like phone numbers if they're not stored numerically just as an example - in practice databases are messy in the real world often with fields that are denormalized lists of ints, json data, xml, etc.

Doing string manipulation in a database function or stored procedure allows you to reject data that comes in in an invalid format before it gets into the database.

Particularly these days, it's popular to store denormalized JSON in the database, for better or worse.

With Norm and Reggie, you can target parsing code to SQL that will allow you to validate or normalize your string data at the database level.

The reason is not for performance, but for security and data integrity. You wouldn't want to run something like this as part of a query. You primarily use it on data update where performance can be less of an issue depending on the scenario.
Real programmers use butterflies

GeneralRe: Bless SQL Pin
PIEBALDconsult31-Oct-21 19:21
mvePIEBALDconsult31-Oct-21 19:21 
GeneralRe: Bless SQL Pin
honey the codewitch31-Oct-21 19:33
mvahoney the codewitch31-Oct-21 19:33 
GeneralRe: Bless SQL Pin
BryanFazekas1-Nov-21 1:50
BryanFazekas1-Nov-21 1:50 
GeneralRe: Bless SQL Pin
Eddy Vluggen1-Nov-21 2:00
professionalEddy Vluggen1-Nov-21 2:00 
GeneralRe: Bless SQL Pin
honey the codewitch1-Nov-21 3:41
mvahoney the codewitch1-Nov-21 3:41 
GeneralRe: Bless SQL Pin
Eddy Vluggen1-Nov-21 6:57
professionalEddy Vluggen1-Nov-21 6:57 
GeneralRe: Bless SQL Pin
honey the codewitch1-Nov-21 7:02
mvahoney the codewitch1-Nov-21 7:02 
GeneralRe: Bless SQL Pin
#realJSOP1-Nov-21 2:41
mve#realJSOP1-Nov-21 2:41 
GeneralRe: Bless SQL Pin
honey the codewitch1-Nov-21 3:42
mvahoney the codewitch1-Nov-21 3:42 
GeneralRe: Bless SQL Pin
Greg Utas31-Oct-21 15:36
professionalGreg Utas31-Oct-21 15:36 
GeneralRe: Bless SQL Pin
honey the codewitch31-Oct-21 16:31
mvahoney the codewitch31-Oct-21 16:31 
GeneralRe: Bless SQL Pin
Jon McKee31-Oct-21 15:41
professionalJon McKee31-Oct-21 15:41 
GeneralRe: Bless SQL Pin
honey the codewitch31-Oct-21 16:33
mvahoney the codewitch31-Oct-21 16:33 
GeneralRe: Bless SQL Pin
NeverJustHere31-Oct-21 16:42
NeverJustHere31-Oct-21 16:42 
GeneralRe: Bless SQL Pin
honey the codewitch31-Oct-21 17:34
mvahoney the codewitch31-Oct-21 17:34 
GeneralRe: Bless SQL Pin
honey the codewitch31-Oct-21 17:40
mvahoney the codewitch31-Oct-21 17:40 
GeneralRe: Bless SQL Pin
#realJSOP2-Nov-21 0:32
mve#realJSOP2-Nov-21 0:32 

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.