This is for vbscript application.
Dim objRs
set objRs = server.CreateObject("ADODB.Recordset")
set objRs = objConn.Execute(sql)
When the sql statement got syntax error, it will cause the whole ASP page into error.
I want to do logging by performing the following: When the query go into error, log the sql into a text file for reference.
Problem here is what is the objRs data looks like when Execute(sql) go into error? Will it return any error code like -1, 8045 etc?
I want to get status of Execution, in order to decide whether to log the sql into textfile.