T
Tony Johansson
Hello!
I just wonder when I supposed to use a SqlParameter in a SqlCommand I use
string.Format instead because it's much more straight forward and easier
I know about SQL injection.
My first question is if people bother to use this SqlParameter when they
have primitive data types because it's mush simpler to use string.format ?
In some cases it's nesessary to use SqlParameter and that is when you have
binary data types(BLOB).
So as a summary I only use sqlParameter when I have BLOB as the datatype in
all other cases I use string.format
//Tony
I just wonder when I supposed to use a SqlParameter in a SqlCommand I use
string.Format instead because it's much more straight forward and easier
I know about SQL injection.
My first question is if people bother to use this SqlParameter when they
have primitive data types because it's mush simpler to use string.format ?
In some cases it's nesessary to use SqlParameter and that is when you have
binary data types(BLOB).
So as a summary I only use sqlParameter when I have BLOB as the datatype in
all other cases I use string.format
//Tony