Click here to Skip to main content
16,006,006 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SQL query with where clause Pin
orion80716-Jul-04 22:03
orion80716-Jul-04 22:03 
GeneralRe: SQL query with where clause Pin
Shanmukeswara Rao16-Jul-04 22:41
Shanmukeswara Rao16-Jul-04 22:41 
GeneralRe: SQL query with where clause Pin
orion80716-Jul-04 23:47
orion80716-Jul-04 23:47 
GeneralRe: SQL query with where clause Pin
beowulfagate16-Jul-04 22:13
beowulfagate16-Jul-04 22:13 
GeneralRe: SQL query with where clause Pin
Dave Kreskowiak17-Jul-04 7:45
mveDave Kreskowiak17-Jul-04 7:45 
GeneralRe: SQL query with where clause Pin
Steven Campbell17-Jul-04 12:24
Steven Campbell17-Jul-04 12:24 
GeneralRe: SQL query with where clause Pin
Dave Kreskowiak18-Jul-04 8:59
mveDave Kreskowiak18-Jul-04 8:59 
GeneralRe: SQL query with where clause Pin
Steven Campbell18-Jul-04 13:52
Steven Campbell18-Jul-04 13:52 
Sorry to split hairs Dave, but...your advice is good, but your facts are wrong.

If you escape every string value in every SQL string that you construct, (and also take care to sanitize all numeric values), then you are in fact safe from SQL injection.

The problem with the escaping approach is that it is difficult to apply consistently. For example, most programmers will neglect to escape values that they obtain from cookies, or the session, or the database. That is a mistake, because users can often affect that data too.




my blog
GeneralRe: SQL query with where clause Pin
Dave Kreskowiak19-Jul-04 2:37
mveDave Kreskowiak19-Jul-04 2:37 
GeneralOpening PDF file separated by pages Pin
franco_8216-Jul-04 19:02
franco_8216-Jul-04 19:02 
GeneralRe: Opening PDF file separated by pages Pin
Mekong River17-Jul-04 4:32
Mekong River17-Jul-04 4:32 
Generalassociate sounds with buttons Pin
samithas16-Jul-04 16:25
samithas16-Jul-04 16:25 
GeneralRe: associate sounds with buttons Pin
Dave Kreskowiak17-Jul-04 7:39
mveDave Kreskowiak17-Jul-04 7:39 
GeneralHelp with coding for message box. Pin
superprogrammingdude16-Jul-04 6:02
superprogrammingdude16-Jul-04 6:02 
GeneralRe: Help with coding for message box. Pin
crazy-weasel16-Jul-04 7:06
crazy-weasel16-Jul-04 7:06 
GeneralRe: Help with coding for message box. Pin
superprogrammingdude16-Jul-04 8:40
superprogrammingdude16-Jul-04 8:40 
QuestionHow to Create Dynamic Toolbar in VB6.0 Pin
Member 119551216-Jul-04 5:18
Member 119551216-Jul-04 5:18 
AnswerRe: How to Create Dynamic Toolbar in VB6.0 Pin
Dave Kreskowiak16-Jul-04 10:20
mveDave Kreskowiak16-Jul-04 10:20 
GeneralCrystal Report viewer Navigation bar problem Pin
spn16-Jul-04 1:20
spn16-Jul-04 1:20 
QuestionHow to set Align property to User ActiveX control Pin
Member 119551215-Jul-04 23:33
Member 119551215-Jul-04 23:33 
GeneralCrystal reports chart Axis / series 'wrong way round' Pin
Martin Gibson15-Jul-04 21:56
Martin Gibson15-Jul-04 21:56 
GeneralInput string was not in a correct format Pin
DotNet15-Jul-04 18:33
DotNet15-Jul-04 18:33 
GeneralRe: Input string was not in a correct format Pin
Dave Kreskowiak16-Jul-04 1:03
mveDave Kreskowiak16-Jul-04 1:03 
GeneralEnableVisualStyles Pin
GregOsborne15-Jul-04 6:39
GregOsborne15-Jul-04 6:39 
GeneralRe: EnableVisualStyles Pin
Dave Kreskowiak16-Jul-04 1:03
mveDave Kreskowiak16-Jul-04 1:03 

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.