Click here to Skip to main content
15,920,956 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 0:30
Rinventive9-Jun-05 0:30 
GeneralRe: C# Sql INSERT statment Pin
Carsten Zeumer9-Jun-05 0:54
Carsten Zeumer9-Jun-05 0:54 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 0:57
Rinventive9-Jun-05 0:57 
GeneralRe: C# Sql INSERT statment Pin
Carsten Zeumer9-Jun-05 1:03
Carsten Zeumer9-Jun-05 1:03 
GeneralRe: C# Sql INSERT statment Pin
V.9-Jun-05 1:02
professionalV.9-Jun-05 1:02 
GeneralRe: C# Sql INSERT statment Pin
Colin Angus Mackay9-Jun-05 1:06
Colin Angus Mackay9-Jun-05 1:06 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:13
Rinventive9-Jun-05 1:13 
GeneralRe: C# Sql INSERT statment Pin
Dave Kreskowiak9-Jun-05 6:38
mveDave Kreskowiak9-Jun-05 6:38 
The other point to that article is to make your code easier to debug and FAR less suseptible to your input ACCIDENTLY breaking your code. If the user happens to type an ' or " in those textboxes somewhere, it'll break your code when you try and insert that into the database. Parameterized queries remove that possiblity because the Parameter objects automatically escape these characters so they won't break your SQL code.

SQL attacks, or failure exploits, are not all deliberate, most happen by pure accident. Learn to avoid situations where your code can break by accident now, before bad habits become your normal practice.


RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:28
Rinventive9-Jun-05 1:28 
GeneralRe: C# Sql INSERT statment Pin
Colin Angus Mackay9-Jun-05 1:31
Colin Angus Mackay9-Jun-05 1:31 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:34
Rinventive9-Jun-05 1:34 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:42
Rinventive9-Jun-05 1:42 
GeneralRe: C# Sql INSERT statment Pin
Rinventive9-Jun-05 1:53
Rinventive9-Jun-05 1:53 
GeneralRe: C# Sql INSERT statment Pin
vincent.reynolds9-Jun-05 5:50
vincent.reynolds9-Jun-05 5:50 
QuestionListView multiline items? Pin
george ivanov8-Jun-05 22:58
george ivanov8-Jun-05 22:58 
AnswerRe: ListView multiline items? Pin
Philip Price8-Jun-05 23:18
Philip Price8-Jun-05 23:18 
AnswerRe: ListView multiline items? Pin
Dave Kreskowiak9-Jun-05 6:32
mveDave Kreskowiak9-Jun-05 6:32 
GeneralPlease Help! Function on Separate Form Pin
DJdC8-Jun-05 22:56
DJdC8-Jun-05 22:56 
GeneralRe: Please Help! Function on Separate Form Pin
Carsten Zeumer8-Jun-05 23:19
Carsten Zeumer8-Jun-05 23:19 
GeneralCadi's Solution Pin
DJdC8-Jun-05 23:45
DJdC8-Jun-05 23:45 
GeneralRe: Cadi's Solution Pin
Carsten Zeumer9-Jun-05 0:03
Carsten Zeumer9-Jun-05 0:03 
GeneralRe: Please Help! Function on Separate Form Pin
S. Senthil Kumar8-Jun-05 23:21
S. Senthil Kumar8-Jun-05 23:21 
GeneralSenthil's Solution Pin
DJdC8-Jun-05 23:41
DJdC8-Jun-05 23:41 
GeneralRe: Please Help! Function on Separate Form Pin
Christian Graus9-Jun-05 0:52
protectorChristian Graus9-Jun-05 0:52 
GeneralGet reference to Form1. Pin
Khoa Bui9-Jun-05 3:05
Khoa Bui9-Jun-05 3:05 

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.