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: I'm Old But... Pin
obermd11-Nov-21 5:58
obermd11-Nov-21 5:58 
GeneralRe: I'm Old But... Pin
Nagy Vilmos11-Nov-21 6:05
professionalNagy Vilmos11-Nov-21 6:05 
GeneralRe: I'm Old But... Pin
glennPattonWork311-Nov-21 6:45
professionalglennPattonWork311-Nov-21 6:45 
GeneralRe: I'm Old But... Pin
Daniel Pfeffer11-Nov-21 11:58
professionalDaniel Pfeffer11-Nov-21 11:58 
GeneralRe: I'm Old But... Pin
RickZeeland11-Nov-21 6:07
mveRickZeeland11-Nov-21 6:07 
GeneralRe: I'm Old But... Pin
Test Tickle12-Nov-21 8:53
Test Tickle12-Nov-21 8:53 
GeneralRe: I'm Old But... Pin
glennPattonWork312-Nov-21 8:58
professionalglennPattonWork312-Nov-21 8:58 
QuestionWould this interest anyone? Pin
honey the codewitch11-Nov-21 4:29
mvahoney the codewitch11-Nov-21 4:29 
I don't know where to post this as it's not a programming question as such, but more of a question about general interest of a certain little concept i cooked up.

Background: I built a thing that can run tokenization from inside a T-SQL database (and i'd support others but i want to try to use their builtin regexes if they have them, and that requires solving a math problem I can't solve yet - Ardens theorem or the state removal method of turning a state machine into a regex). In the future I'll support them efficiently.

anyway, point is, you can "type", validate and detect different types of fields in a text stream.

so what you can do with it is create "typed CSVs" you could submit to stored procedures to update a whole mess of data in one call, with validation and rejection of invalid CSVs.

The upshot is you don't need to grant a webserver access to your DB tables - just the stored procs - that becomes practical - at least in some situations - because you can update a whole CSV** worth of data at once.

**The CSV could only be as long as either NTEXT or NVARCHAR(MAX) but whatever.

I haven't performance tested it in MSSQL - yet. However, I stand by the general algorithm as over 3 times faster than the one the Microsoft .NET Regex engine uses though running it in a database is iffy performancewise. Still, I don't think it's bad enough to be unrealistic unless you need very rapid turnaround times on your updates.
Real programmers use butterflies

AnswerRe: Would this interest anyone? Pin
PIEBALDconsult11-Nov-21 4:33
mvePIEBALDconsult11-Nov-21 4:33 
QuestionRe: Would this interest anyone? Pin
honey the codewitch11-Nov-21 4:36
mvahoney the codewitch11-Nov-21 4:36 
AnswerRe: Would this interest anyone? Pin
PIEBALDconsult11-Nov-21 4:58
mvePIEBALDconsult11-Nov-21 4:58 
GeneralRe: Would this interest anyone? Pin
honey the codewitch11-Nov-21 5:10
mvahoney the codewitch11-Nov-21 5:10 
GeneralRe: Would this interest anyone? Pin
PIEBALDconsult11-Nov-21 5:55
mvePIEBALDconsult11-Nov-21 5:55 
GeneralRe: Would this interest anyone? Pin
honey the codewitch11-Nov-21 8:48
mvahoney the codewitch11-Nov-21 8:48 
AnswerRe: Would this interest anyone? Pin
lmoelleb11-Nov-21 5:01
lmoelleb11-Nov-21 5:01 
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 
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 

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.