Click here to Skip to main content
15,909,827 members
Home / Discussions / Database
   

Database

 
GeneralRe: datetime Comparision Pin
DotNetDominator7-May-06 15:40
DotNetDominator7-May-06 15:40 
GeneralRe: datetime Comparision Pin
Rob Graham7-May-06 15:56
Rob Graham7-May-06 15:56 
QuestionSQL database batch files Pin
abdelhameed816-May-06 9:43
abdelhameed816-May-06 9:43 
AnswerRe: SQL database batch files Pin
Rob Graham7-May-06 5:36
Rob Graham7-May-06 5:36 
QuestionDeleting from an SQL database Pin
alee15.10.886-May-06 1:52
alee15.10.886-May-06 1:52 
AnswerRe: Deleting from an SQL database Pin
DotNetDominator7-May-06 2:02
DotNetDominator7-May-06 2:02 
GeneralRe: Deleting from an SQL database Pin
alee15.10.887-May-06 20:12
alee15.10.887-May-06 20:12 
AnswerRe: Deleting from an SQL database Pin
Rob Graham7-May-06 4:06
Rob Graham7-May-06 4:06 
I case you can't see what's different in DotNetD's answer, he replaced the double quotes surrounding the textbox variable with single quotes.

I strongly recommend that you check out this[^] article by Colin Angus Mackay before someone types ';truncate table tblusers; in your textbox and destroys your database.

If you use parameters rather than direct text concatenation, you will avoid both the problem you are having now, and the vulnerability to sql injection attacks in your app.

We need to graduate from the ridiculous notion that greed is some kind of elixir for capitalism - it's the downfall of capitalism. Self-interest, maybe, but self-interest run amok does not serve anyone. The core value of conscious capitalism is enlightened self-interest.
Patricia Aburdene




-- modified at 10:07 Sunday 7th May, 2006
QuestionSQL2005 Express reporting services remote user Pin
juszuf5-May-06 20:37
juszuf5-May-06 20:37 
QuestionUsing ROUND Pin
myNameIsRon5-May-06 19:03
myNameIsRon5-May-06 19:03 
AnswerRe: Using ROUND Pin
Rob Graham7-May-06 5:52
Rob Graham7-May-06 5:52 
GeneralRe: Using ROUND Pin
myNameIsRon7-May-06 11:16
myNameIsRon7-May-06 11:16 
GeneralRe: Using ROUND Pin
Rob Graham7-May-06 12:30
Rob Graham7-May-06 12:30 
GeneralRe: Using ROUND Pin
myNameIsRon7-May-06 19:19
myNameIsRon7-May-06 19:19 
GeneralRe: Using ROUND Pin
Rob Graham8-May-06 8:49
Rob Graham8-May-06 8:49 
GeneralRe: Using ROUND Pin
myNameIsRon8-May-06 12:28
myNameIsRon8-May-06 12:28 
GeneralRe: Using ROUND Pin
Rob Graham8-May-06 16:48
Rob Graham8-May-06 16:48 
GeneralRe: Using ROUND Pin
myNameIsRon8-May-06 21:34
myNameIsRon8-May-06 21:34 
QuestionReporting Service 2005 Pin
devvvy5-May-06 14:38
devvvy5-May-06 14:38 
QuestionExport a table to a CSV file Pin
Alvin Ortiz5-May-06 12:46
Alvin Ortiz5-May-06 12:46 
AnswerRe: Export a table to a CSV file Pin
Rob Graham7-May-06 6:07
Rob Graham7-May-06 6:07 
GeneralRe: Export a table to a CSV file Pin
Alvin Ortiz15-May-06 12:27
Alvin Ortiz15-May-06 12:27 
QuestionOutputting RTF from SQL Reporting? Pin
dxben5-May-06 5:54
dxben5-May-06 5:54 
QuestionInstr function for SQL Pin
MatthysDT5-May-06 1:54
MatthysDT5-May-06 1:54 
AnswerRe: Instr function for SQL Pin
sathish s5-May-06 2:07
sathish s5-May-06 2:07 

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.