Click here to Skip to main content
15,902,198 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Error when add a record in the database Pin
Christian Graus15-Aug-07 22:33
protectorChristian Graus15-Aug-07 22:33 
GeneralRe: Error when add a record in the database Pin
MartyK200715-Aug-07 22:56
MartyK200715-Aug-07 22:56 
GeneralRe: Error when add a record in the database Pin
Mekong River15-Aug-07 23:07
Mekong River15-Aug-07 23:07 
GeneralRe: Error when add a record in the database Pin
MartyK200715-Aug-07 23:09
MartyK200715-Aug-07 23:09 
GeneralRe: Error when add a record in the database Pin
Mekong River15-Aug-07 23:11
Mekong River15-Aug-07 23:11 
GeneralRe: Error when add a record in the database Pin
MartyK200715-Aug-07 23:22
MartyK200715-Aug-07 23:22 
GeneralRe: Error when add a record in the database Pin
Mekong River15-Aug-07 23:05
Mekong River15-Aug-07 23:05 
GeneralRe: Error when add a record in the database Pin
Christian Graus15-Aug-07 23:21
protectorChristian Graus15-Aug-07 23:21 
Does it give any other information ? Have you tried adding the number field as well, just to see if this is the problem ?

Like I said, search the site, or the web, for SQL injection. Short version: you do something like this:

statement = "select * from tblData where SomeCol = '" + txtColData.Text + "'"

What if I enter this:

f' GO DELETE from tblData GO

Then your sql looks like this:

select * from tblData where SomeCol = 'f' GO
DELETE from tblData GO
'

The last line is not valid SQL, but the first two will do a select, and delete all records from tblData. It's possible to write SQL that just deletes everything, without even knowing the table names.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

GeneralRe: Error when add a record in the database Pin
Tom Deketelaere15-Aug-07 23:24
professionalTom Deketelaere15-Aug-07 23:24 
GeneralRe: Error when add a record in the database Pin
Mekong River15-Aug-07 23:54
Mekong River15-Aug-07 23:54 
GeneralRe: Error when add a record in the database Pin
Christian Graus15-Aug-07 23:57
protectorChristian Graus15-Aug-07 23:57 
GeneralRe: Error when add a record in the database Pin
Mekong River16-Aug-07 0:01
Mekong River16-Aug-07 0:01 
GeneralRe: Error when add a record in the database Pin
Christian Graus16-Aug-07 0:11
protectorChristian Graus16-Aug-07 0:11 
GeneralRe: Error when add a record in the database Pin
Mekong River16-Aug-07 0:19
Mekong River16-Aug-07 0:19 
GeneralRe: Error when add a record in the database Pin
Tom Deketelaere16-Aug-07 0:32
professionalTom Deketelaere16-Aug-07 0:32 
GeneralRe: Error when add a record in the database Pin
Christian Graus16-Aug-07 11:50
protectorChristian Graus16-Aug-07 11:50 
AnswerRe: Error when add a record in the database Pin
Vimalsoft(Pty) Ltd16-Aug-07 22:20
professionalVimalsoft(Pty) Ltd16-Aug-07 22:20 
QuestionProblem with Combobox Populating And Sorting Pin
Vimalsoft(Pty) Ltd15-Aug-07 21:48
professionalVimalsoft(Pty) Ltd15-Aug-07 21:48 
AnswerRe: Problem with Combobox Populating And Sorting Pin
Luc Pattyn16-Aug-07 0:10
sitebuilderLuc Pattyn16-Aug-07 0:10 
GeneralRe: Problem with Combobox Populating And Sorting Pin
Vimalsoft(Pty) Ltd16-Aug-07 0:16
professionalVimalsoft(Pty) Ltd16-Aug-07 0:16 
QuestionThe SourceCode Manage Pin
codelinks15-Aug-07 21:21
codelinks15-Aug-07 21:21 
AnswerRe: The SourceCode Manage Pin
Dave Kreskowiak16-Aug-07 3:08
mveDave Kreskowiak16-Aug-07 3:08 
GeneralRe: The SourceCode Manage Pin
codelinks16-Aug-07 3:13
codelinks16-Aug-07 3:13 
Questionhow can i get the domain Name/IP under which my mahine works Pin
koolprasad200315-Aug-07 21:01
professionalkoolprasad200315-Aug-07 21:01 
AnswerRe: how can i get the domain Name/IP under which my mahine works Pin
Tom Deketelaere15-Aug-07 21:12
professionalTom Deketelaere15-Aug-07 21:12 

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.