|
A stack trace. Can you tell me how to get that off an external server? As for more of the code. Here is the .asp code:
<%
REM Function gets name of product entity
Function GetName(strAssocType, intAssocObjId)
Select case strAssocType
case "pf_id"
strText = "product family"
strStoredProc = "prod_family_select_by_pf_id"
strRS = "pf_name"
case "pd_id"
strText = "product department"
strStoredProc = "prod_dept_select_by_pd_id"
strRS = "pd_name"
case "prod_id"
strText = "product"
strStoredProc = "prod_select_name_by_prod_id"
strRS = "prod_name"
end select
CreateDBConnection()
ConnectionObject.BeginTrans
CommandObject.CommandType = 4 'adCommandObjectStoredProc
CommandObject.CommandText = strStoredProc
'CommandObject.Parameters.Refres
CommandObject(1) = intAssocObjId
set rsName = CommandObject.Execute()
CloseDBConnection()
If not rsName.eof then
strRS = rsName(strRS)
GetName = array(strText, strRS)
else
GetName = null
end if
End Function
%>
|