Thulasiram pakala

Thulasiram pakala

  • 907
  • 872
  • 115.2k

In Sql Out parameter meaasge is 'CM0001' else Allredy Regi'

May 3 2021 9:44 AM
Select @Error
 
Error code output 'CM0001'
 
C# Code obj=cmd.Executenonquery();
 
in this execute nonquery return int but i want to display string its conversion error please help me
 
output is'CM0001'
 
string  Consumer = Convert.ToString(SqlHelper.ExecuteNonQuery(myConnectionString, "Proc", arParamsOwners));
// object  Consumer =Convert.ToString(SqlHelper.ExecuteDataset(myConnectionString, "Proc", arParamsOwners));
object Consumer = SqlHelper.ExecuteScalar(myConnectionString, "Proc", arParamsOwners);

Answers (1)