I am trying to work on ExecuteSQL() and it returns ?. The EvaluationError returns 8309. But my query runs fine when run in SQL server.
ExecuteSQL("Select (ISNULL(MAX(SEQUENCE),0)) from WCT where WO_NUMBER = ?","","",$Wo_Number)
What could possibly be wrong here..