These characters will cause your SQL statement to crash: ' and , so call the replace function.
Dim strName as string = "Kevin O'Grady"
strName = strName.Replace("'","''")
strName = strName.Replace(",", "',") 'With the above string this does nothing
INSERT INTO Logins(Name) VALUES('" & strName &"')
"The one language all programmers understand is profanity."
|