My code is like this:
string groupQuery= blabla;
string WhereQuery= blabla;
string cmt= String.Format("selecte * from Customer {0}{1} order by CustomerName", WhereQuery, groupQuery);
SqlCommand cmd1=new SqlCommand(cmt);
everything is working fine. But
at SqlCommand(cmt); Visual studio sugest me to "Make sure to sanitize the parameters of this SQL command"
How can I fix it?
Loading
Ramesh PalanivelPosted Dec 5, 2017, 10:34 AM
darma tejaPosted Dec 5, 2017, 10:27 AM
Ramesh PalanivelPosted Dec 5, 2017, 10:22 AM
Ramesh PalanivelPosted Dec 5, 2017, 9:47 AM