Click here to Skip to main content
15,860,859 members
Home / Discussions / Database
   

Database

 
GeneralRe: I'm trying to concat 2 columns into a single result Pin
jkirkerx2-Jun-15 10:13
professionaljkirkerx2-Jun-15 10:13 
AnswerRe: I'm trying to concat 2 columns into a single result Pin
Sascha Lefèvre2-Jun-15 10:43
professionalSascha Lefèvre2-Jun-15 10:43 
GeneralRe: I'm trying to concat 2 columns into a single result Pin
jkirkerx2-Jun-15 10:55
professionaljkirkerx2-Jun-15 10:55 
GeneralRe: I'm trying to concat 2 columns into a single result Pin
Sascha Lefèvre2-Jun-15 11:02
professionalSascha Lefèvre2-Jun-15 11:02 
QuestionRemoving the concatenated code variable for a SQL select statement . Pin
Stephen Holdorf2-Jun-15 8:32
Stephen Holdorf2-Jun-15 8:32 
AnswerRe: Removing the concatenated code variable for a SQL select statement . Pin
Richard Deeming2-Jun-15 22:20
mveRichard Deeming2-Jun-15 22:20 
GeneralRe: Removing the concatenated code variable for a SQL select statement . Pin
Stephen Holdorf3-Jun-15 1:55
Stephen Holdorf3-Jun-15 1:55 
GeneralRe: Removing the concatenated code variable for a SQL select statement . Pin
Richard Deeming3-Jun-15 3:06
mveRichard Deeming3-Jun-15 3:06 
What? Confused | :confused:

The code you've shown passes the value of the variables from C# to SQL - using string concatenation, so it's vulnerable to SQL Injection. Those values are returned as part of the result-set of the query.

Nothing in the code you've shown will update the value of the C# variables.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Removing the concatenated code variable for a SQL select statement . Pin
Stephen Holdorf3-Jun-15 3:13
Stephen Holdorf3-Jun-15 3:13 
GeneralRe: Removing the concatenated code variable for a SQL select statement . Pin
Richard Deeming3-Jun-15 3:25
mveRichard Deeming3-Jun-15 3:25 
GeneralRe: Removing the concatenated code variable for a SQL select statement . Pin
Stephen Holdorf3-Jun-15 3:32
Stephen Holdorf3-Jun-15 3:32 
GeneralRe: Removing the concatenated code variable for a SQL select statement . Pin
Richard Deeming3-Jun-15 3:34
mveRichard Deeming3-Jun-15 3:34 
QuestionLDF file Size is so increased Pin
Azam Niaz Ch.31-May-15 23:30
Azam Niaz Ch.31-May-15 23:30 
GeneralRe: LDF file Size is so increased Pin
Kornfeld Eliyahu Peter31-May-15 23:57
professionalKornfeld Eliyahu Peter31-May-15 23:57 
GeneralRe: LDF file Size is so increased Pin
Azam Niaz Ch.1-Jun-15 0:07
Azam Niaz Ch.1-Jun-15 0:07 
GeneralRe: LDF file Size is so increased Pin
Kornfeld Eliyahu Peter1-Jun-15 0:15
professionalKornfeld Eliyahu Peter1-Jun-15 0:15 
GeneralRe: LDF file Size is so increased Pin
Azam Niaz Ch.1-Jun-15 0:26
Azam Niaz Ch.1-Jun-15 0:26 
GeneralRe: LDF file Size is so increased Pin
Kornfeld Eliyahu Peter1-Jun-15 0:49
professionalKornfeld Eliyahu Peter1-Jun-15 0:49 
GeneralRe: LDF file Size is so increased Pin
Azam Niaz Ch.1-Jun-15 1:29
Azam Niaz Ch.1-Jun-15 1:29 
GeneralRe: LDF file Size is so increased Pin
Kornfeld Eliyahu Peter1-Jun-15 1:39
professionalKornfeld Eliyahu Peter1-Jun-15 1:39 
GeneralRe: LDF file Size is so increased Pin
Azam Niaz Ch.1-Jun-15 1:50
Azam Niaz Ch.1-Jun-15 1:50 
AnswerRe: LDF file Size is so increased Pin
Kornfeld Eliyahu Peter1-Jun-15 2:09
professionalKornfeld Eliyahu Peter1-Jun-15 2:09 
GeneralRe: LDF file Size is so increased Pin
Azam Niaz Ch.1-Jun-15 2:17
Azam Niaz Ch.1-Jun-15 2:17 
GeneralRe: LDF file Size is so increased Pin
Kornfeld Eliyahu Peter1-Jun-15 2:18
professionalKornfeld Eliyahu Peter1-Jun-15 2:18 
GeneralRe: LDF file Size is so increased Pin
Azam Niaz Ch.1-Jun-15 2:53
Azam Niaz Ch.1-Jun-15 2:53 

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.