Click here to Skip to main content
15,884,425 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: get all directories in Computer Pin
ednrgc15-Feb-07 4:51
ednrgc15-Feb-07 4:51 
Questioncomponents file in vb.net Pin
amaneet15-Feb-07 4:12
amaneet15-Feb-07 4:12 
Questionserver error Pin
Sarfaraj Ahmed15-Feb-07 3:37
Sarfaraj Ahmed15-Feb-07 3:37 
AnswerRe: server error Pin
Dave Kreskowiak15-Feb-07 13:03
mveDave Kreskowiak15-Feb-07 13:03 
Questionhai Pin
Ishwarya M15-Feb-07 2:31
Ishwarya M15-Feb-07 2:31 
AnswerRe: hai Pin
Marcus J. Smith15-Feb-07 3:02
professionalMarcus J. Smith15-Feb-07 3:02 
GeneralRe: hai Pin
Ishwarya M15-Feb-07 4:12
Ishwarya M15-Feb-07 4:12 
AnswerRe: hai Pin
Colin Angus Mackay15-Feb-07 4:19
Colin Angus Mackay15-Feb-07 4:19 
Here is a very interesting question for you. What if the user typed in the following into the user name text box:
' OR 1=1;--


Answer:
select count(*) from users where UserName='' OR 1=1;--' AND Password=''

And that will return a value of however many users are in your database to ret. This then allows anyone access to your application, even if they are not permitted.

You really MUST learn about SQL Injection Attacks and some Tips on How to Prevent Them[^]

By the way, your immediate error is caused because you have a syntax error in your SQL. User Name should either not have a space, or it should be enclosed in square brakets like this [User Name].


GeneralRe: hai Pin
Marcus J. Smith15-Feb-07 4:25
professionalMarcus J. Smith15-Feb-07 4:25 
GeneralRe: hai Pin
Colin Angus Mackay15-Feb-07 4:31
Colin Angus Mackay15-Feb-07 4:31 
AnswerRe: hai Pin
Marcus J. Smith15-Feb-07 4:46
professionalMarcus J. Smith15-Feb-07 4:46 
QuestionString length problem Pin
penguin500015-Feb-07 2:29
penguin500015-Feb-07 2:29 
AnswerRe: String length problem Pin
Tamimi - Code15-Feb-07 3:49
Tamimi - Code15-Feb-07 3:49 
GeneralRe: String length problem Pin
penguin500015-Feb-07 23:25
penguin500015-Feb-07 23:25 
Questionsecond form Pin
KOKEMO15-Feb-07 1:47
KOKEMO15-Feb-07 1:47 
AnswerRe: second form Pin
Marcus J. Smith15-Feb-07 2:13
professionalMarcus J. Smith15-Feb-07 2:13 
AnswerRe: second form Pin
jim_taylor16-Feb-07 10:21
jim_taylor16-Feb-07 10:21 
QuestionNeed Help while deployment ...Anyone please help me. Pin
Member 371873315-Feb-07 0:32
Member 371873315-Feb-07 0:32 
AnswerRe: Need Help while deployment ...Anyone please help me. Pin
nlindley715-Feb-07 6:04
nlindley715-Feb-07 6:04 
QuestionValidating characters Pin
Mark0614-Feb-07 23:50
Mark0614-Feb-07 23:50 
AnswerRe: Validating characters Pin
KeithF15-Feb-07 0:09
KeithF15-Feb-07 0:09 
QuestionDynamic compilation Pin
JCSillero14-Feb-07 21:53
professionalJCSillero14-Feb-07 21:53 
AnswerRe: Dynamic compilation Pin
Dave Kreskowiak15-Feb-07 13:00
mveDave Kreskowiak15-Feb-07 13:00 
GeneralRe: Dynamic compilation Pin
JCSillero15-Feb-07 18:56
professionalJCSillero15-Feb-07 18:56 
QuestionHow 2 Fix the Form Size in Vb.Net? Pin
Parameswar Mal14-Feb-07 21:38
Parameswar Mal14-Feb-07 21:38 

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.