Ver Mensaje Individual
  #2 (permalink)  
Antiguo 05/10/2005, 18:09
Avatar de splinter
splinter
 
Fecha de Ingreso: junio-2004
Ubicación: Misantla,Ver.Mexico
Mensajes: 181
Antigüedad: 20 años
Puntos: 0
try
{
myCommand.Connection.Open();
System.Data.SqlClient.SqlDataReader myDR = myCommand.ExecuteReader();
myDR.Close();
int res = Convert.ToInt32(myCommand.Parameters["@res"].Value);
}
catch(System.Exception Ex)
{
Exceptionmessage =Ex.Message.ToString();//MENSAJE
}
finally
{
myCommand.Connection.Close();
myCommand.Dispose();
myConnection.Dispose();
}