hi,
I am trying to fill a dataset from an stored procedure in SQL Server
2000.
The code is:
string strSalida="";
SqlDataAdapter daAdapter = new SqlDataAdapter();
SqlCommand cmd;
try
{
cmd = new SqlCommand(strConParametros, myConnection );
daAdapter.SelectCommand = cmd;
daAdapter.Fill(dsResultado);
catch (Exception e)
{
strSalida = "lanzaConVuelta 1:" + e.Message;
}
The stored procedure return an error (invalid type conversion) but the
sqldataadapter don´t catch the error, no exception is detected in the
program.
How can I catch the error form the stored procedure?
Is a bug in the sqldataadapter?
Thanks
Alvaro