Click here to Skip to main content
15,913,587 members
Home / Discussions / Database
   

Database

 
GeneralRe: Can this exception be taken care of? Pin
mysorian8-Sep-04 6:49
professionalmysorian8-Sep-04 6:49 
QuestionCounting NULL columns across a row? Pin
Mike Ellison7-Sep-04 9:38
Mike Ellison7-Sep-04 9:38 
Generaltextbox datasource retrieve text problem Pin
Bart-Man7-Sep-04 8:29
Bart-Man7-Sep-04 8:29 
GeneralPossible Solution Pin
Bart-Man8-Sep-04 3:52
Bart-Man8-Sep-04 3:52 
GeneralDTS Dynamic Properties Pin
ProffK6-Sep-04 23:20
ProffK6-Sep-04 23:20 
Questionhow to bind the textbox value to sqlCommand? Pin
DotNet6-Sep-04 19:49
DotNet6-Sep-04 19:49 
AnswerRe: how to bind the textbox value to sqlCommand? Pin
Sudee6-Sep-04 20:23
Sudee6-Sep-04 20:23 
AnswerRe: how to bind the textbox value to sqlCommand? Pin
Colin Angus Mackay6-Sep-04 23:10
Colin Angus Mackay6-Sep-04 23:10 
You should really parameterise your command. What you have here, if it worked, is suseptable to an injection attack.

cmdSql = New SqlCommand("Select * From Peripheral WHERE PCID=@PCID", myConnection)
cmdSql.Parameters.Add("@PCID",SqlDbType.VarChar, 10).Value = Tpcid


The above is much safer. (Remember to change the SqlDbType and field length values as appropriate)


"If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell

Not getting the response you want from a question asked in an online forum: How to Ask Questions the Smart Way!


QuestionHow to insert ' into database? Pin
ting6686-Sep-04 19:10
ting6686-Sep-04 19:10 
AnswerRe: How to insert ' into database? Pin
Sudee6-Sep-04 20:17
Sudee6-Sep-04 20:17 
GeneralRe: How to insert ' into database? Pin
ting6686-Sep-04 20:28
ting6686-Sep-04 20:28 
GeneralRe: How to insert ' into database? Pin
Sudee6-Sep-04 22:09
Sudee6-Sep-04 22:09 
GeneralRe: How to insert ' into database? Pin
ting6686-Sep-04 22:48
ting6686-Sep-04 22:48 
GeneralRe: How to insert ' into database? Pin
Colin Angus Mackay6-Sep-04 23:01
Colin Angus Mackay6-Sep-04 23:01 
GeneralRe: How to insert ' into database? Pin
iamalik7-Sep-04 7:53
professionaliamalik7-Sep-04 7:53 
GeneralRe: How to insert ' into database? Pin
EdbertP8-Sep-04 21:19
EdbertP8-Sep-04 21:19 
GeneralRe: How to insert ' into database? Pin
ting6688-Sep-04 22:07
ting6688-Sep-04 22:07 
AnswerRe: How to insert ' into database? Pin
Salil Khedkar13-Sep-04 2:00
Salil Khedkar13-Sep-04 2:00 
Generalunhandled exception Pin
Sudee5-Sep-04 23:07
Sudee5-Sep-04 23:07 
GeneralRe: unhandled exception Pin
Colin Angus Mackay6-Sep-04 3:47
Colin Angus Mackay6-Sep-04 3:47 
GeneralRe: unhandled exception Pin
Sudee6-Sep-04 16:38
Sudee6-Sep-04 16:38 
GeneralConverting SQL's date format Pin
totig5-Sep-04 20:26
totig5-Sep-04 20:26 
GeneralRe: Converting SQL's date format Pin
Anonymous6-Sep-04 3:42
Anonymous6-Sep-04 3:42 
GeneralRe: Converting SQL's date format Pin
Jon Hulatt6-Sep-04 10:39
Jon Hulatt6-Sep-04 10:39 
GeneralRe: Converting SQL's date format Pin
Grimolfr7-Sep-04 10:28
Grimolfr7-Sep-04 10:28 

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.