M
Michael
Coming from an ADO Background, I got by ok without using Parameters when I
executed SQL Statements. I would just dynamically create the sql statement,
inserting text between single quotes here and there, and send her off to the
server, and voila, It worked.
Now I'm learning ado.net, and many examples I see show using parameters to
pass input values to the command object. I also see examples just like the
old way I did it.
What would be the advantage of using Parameters for Input? It just seems to
me to be too much of a hassle to set them up when I can just concatenate a
sql string together much easier.
So is there any big advantage I'm missing when it comes to using parameters?
Thanks,
--Michael
executed SQL Statements. I would just dynamically create the sql statement,
inserting text between single quotes here and there, and send her off to the
server, and voila, It worked.
Now I'm learning ado.net, and many examples I see show using parameters to
pass input values to the command object. I also see examples just like the
old way I did it.
What would be the advantage of using Parameters for Input? It just seems to
me to be too much of a hassle to set them up when I can just concatenate a
sql string together much easier.
So is there any big advantage I'm missing when it comes to using parameters?
Thanks,
--Michael