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 PalanivelRank #372 · 6.8K reputationPosted Dec 5, 2017, 5:22 AM EST
darma tejaRank #3,199 · 449 reputationPosted Dec 5, 2017, 5:27 AM EST
Ramesh PalanivelRank #372 · 6.8K reputationPosted Dec 5, 2017, 5:34 AM EST
Ramesh PalanivelRank #372 · 6.8K reputationPosted Dec 5, 2017, 4:47 AM EST