Перл (ну вообще то не Perl а ASP)

Yurik

/dev/null
Перл (ну вообще то не Perl а ASP)

Вот перл на буржуйском форуме откопал. На мои замечания о полном непонимании сути автор недоумевал: ну при чем здесь это... вы скажите почему Execute ничего не делает?
Sub isDelete(deleteId)
strMsg = "Are you sure you want to delete this project? "
If window.confirm(strMsg) = True Then
<%
set cConn = Server.CreateObject("ADODB.Connection")
cConn.Open "PCS_DSN"
set rsDel = cConn.Execute("Delete FROM tblProject WHERE projectId = 100" )
%>

End if
End Sub
на что проследовал ответ
try con.Execute("DELETE FROM tblProject WHERE projectID = " & CLng(deleteID))

Even better, write a stored procedure that does the delete and use a command object to pass the deleteID to it and do the delete there.
 
Сверху