
05/10/2005, 18:09
|
 | | | Fecha de Ingreso: junio-2004 Ubicación: Misantla,Ver.Mexico
Mensajes: 181
Antigüedad: 20 años, 8 meses 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();
} |