Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/11/2010, 07:58
Avatar de jaullo
jaullo
 
Fecha de Ingreso: abril-2009
Mensajes: 994
Antigüedad: 15 años
Puntos: 30
Respuesta: Como eliminar un atriburto de una base de dato

Lo hace tal y como lo has echo en vb ó c#, por ejemplo


Código ASP:
Ver original
  1. public void eliminarProducto(int codigo)
  2.  
  3.         {
  4.  
  5.                     SqlConnection myConnection = new SqlConnection(ConfigurationSettings.AppSettings("forumDSN"));
  6.  
  7. SqlCommand myCommand = new SqlCommand("Delete from tabla where codigo="+ codigo + " )", myConnection);
  8.  
  9.  
  10.  
  11. myConnection.Open();
  12.  
  13. myCommand.ExecuteNonQuery();
  14.  
  15. myConnection.Close();
  16.  
  17.  
  18.  
  19.          }
__________________
http://geekswithblogs.net/jaullo/Default.aspx
Si te he ayudado regalame Karma positivo!!!