Click here to Skip to main content
15,885,980 members
Home / Discussions / C#
   

C#

 
AnswerRe: RegEx Not Properly Matching Pin
OriginalGriff26-Dec-20 4:09
mveOriginalGriff26-Dec-20 4:09 
GeneralRe: RegEx Not Properly Matching Pin
#realJSOP26-Dec-20 4:26
mve#realJSOP26-Dec-20 4:26 
GeneralRe: RegEx Not Properly Matching Pin
OriginalGriff26-Dec-20 5:08
mveOriginalGriff26-Dec-20 5:08 
GeneralRe: RegEx Not Properly Matching Pin
#realJSOP26-Dec-20 5:26
mve#realJSOP26-Dec-20 5:26 
GeneralRe: RegEx Not Properly Matching Pin
Richard Deeming4-Jan-21 22:28
mveRichard Deeming4-Jan-21 22:28 
AnswerRe: RegEx Not Properly Matching Pin
Gerry Schmitz26-Dec-20 14:54
mveGerry Schmitz26-Dec-20 14:54 
AnswerRe: RegEx Not Properly Matching Pin
jschell29-Dec-20 6:46
jschell29-Dec-20 6:46 
GeneralRe: RegEx Not Properly Matching Pin
#realJSOP30-Dec-20 3:16
mve#realJSOP30-Dec-20 3:16 
Stored procs are not an issue. If they're in the database, whatever is in them must be okay. The point of my app is to determine whether or not a given stored proc returns a dataset. That is all the regex is for. If a stored proc contains a DDL statement, even if it's in dynamic sql, it will be detected by the regex.

1) The regex string I'm using already checks for DDL commands.

2) I provided an amended version that I came up with (that works as intended) that in fact includes \b markers.

3) See my prelude.

4) User-provided queries MUST start with SELECT. That pretty much prevents the user from creating vars or executing dynamic sql/procs.

5) Not a concern. I modify the specified select command to start with "SELECT TOP(0)", which causes an empty data set to be returned.

6) Not a concern. For user-specified queries, I already insert a "USE" statement for the selected database.

7) Only one of your points had anything at all to do with my actual question. I guess that's kinda my fault for posting the actual regex strings I was using instead of using randomly selected words in my example.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013

AnswerRe: RegEx Not Properly Matching Pin
Richard Deeming4-Jan-21 22:37
mveRichard Deeming4-Jan-21 22:37 
Questionsource code Pin
Member 1503068825-Dec-20 23:41
Member 1503068825-Dec-20 23:41 
AnswerRe: source code Pin
Sandeep Mewara25-Dec-20 23:51
mveSandeep Mewara25-Dec-20 23:51 
QuestionData format for non-computerist editing Pin
trønderen22-Dec-20 10:23
trønderen22-Dec-20 10:23 
AnswerRe: Data format for non-computerist editing Pin
OriginalGriff22-Dec-20 11:05
mveOriginalGriff22-Dec-20 11:05 
GeneralRe: Data format for non-computerist editing Pin
trønderen22-Dec-20 14:26
trønderen22-Dec-20 14:26 
GeneralRe: Data format for non-computerist editing Pin
BillWoodruff22-Dec-20 15:17
professionalBillWoodruff22-Dec-20 15:17 
GeneralRe: Data format for non-computerist editing Pin
trønderen23-Dec-20 8:24
trønderen23-Dec-20 8:24 
GeneralRe: Data format for non-computerist editing Pin
BillWoodruff23-Dec-20 8:42
professionalBillWoodruff23-Dec-20 8:42 
GeneralRe: Data format for non-computerist editing Pin
OriginalGriff22-Dec-20 22:07
mveOriginalGriff22-Dec-20 22:07 
GeneralRe: Data format for non-computerist editing Pin
trønderen23-Dec-20 8:10
trønderen23-Dec-20 8:10 
GeneralRe: Data format for non-computerist editing Pin
OriginalGriff23-Dec-20 19:44
mveOriginalGriff23-Dec-20 19:44 
GeneralRe: Data format for non-computerist editing Pin
trønderen24-Dec-20 9:44
trønderen24-Dec-20 9:44 
AnswerRe: Data format for non-computerist editing Pin
Gerry Schmitz23-Dec-20 6:46
mveGerry Schmitz23-Dec-20 6:46 
AnswerRe: Data format for non-computerist editing Pin
Mycroft Holmes23-Dec-20 11:14
professionalMycroft Holmes23-Dec-20 11:14 
AnswerRe: Data format for non-computerist editing Pin
jschell29-Dec-20 6:54
jschell29-Dec-20 6:54 
QuestionHow to address SQL CE file path? Pin
Alex Dunlop22-Dec-20 7:46
Alex Dunlop22-Dec-20 7:46 

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.