Im using ASP Classic to connect to a database and when I try to execute a proc that doesnt exist, the error is never return and the SQL Profiler stay calling the:
SET FMTONLY OFF
SET FMTONLY OFF
SET FMTONLY ON EXEC gpa_proctest_ SET FMTONLY OFF
SET FMTONLY ON EXEC gpa_proctest_ SET FMTONLY OFF
And my web aplication stay waiting for the error.
Here is my ASP:
set cmd = Server.CreateObject("ADODB.Command")
cmd.ActiveConnection = conn 'connection string
cmd.CommandText = "gpa_proctest_"
cmd.CommandType = adCmdStoredProc
cmd.Parameters.Append cmd.CreateParameter("@ID_PRJ", adInteger, adParamInput, , 33)
cmd.Parameters.Append cmd.CreateParameter("@LINHA", adChar, adParamInput, 1, "A")
set Rs1 = Server.CreateObject("ADODB.RecordSet")
Rs1.CursorLocation = adUseServer
Rs1.CursorType = adOpenStatic
Rs1.Open cmd
Can anybody help me?
Tks.