ASP – Cancellare un record

[code]

‘ elimino il campo relativo al file nel DB
Set DoDelete = Server.CreateObject("ADODB.Command")
DoDelete.ActiveConnection = strConnectSQL
DoDelete.CommandText = "DELETE FROM DB WHERE id = ’23’ ;"
DoDelete.CommandType = 1
DoDelete.CommandTimeout = 0
DoDelete.Prepared = true
DoDelete.Execute()
Set DoDelete = Nothing ‘ chiudo il recordset
‘ fine

[/code]