command.CommandText and parameters

  • Thread starter Thread starter skneife
  • Start date Start date
S

skneife

What is the way for getting the sqlQuery with all params
replacementfrom a command ?
DbCommand command;
SqlParameter sqlParam = new SqlParameter("@param1", "value1");
SqlParameter sqlParam = new SqlParameter("@param1", "value2");
command.CommandText=sqlQuery;
What is the propertoie that provide the sqlQuery string but with all
params replacement ?

Sam
 
Back
Top