Invalid name for dynamic statement or cursor Explanation: The user passed either a zero length string, no string or a variable not of data type text for a dynamic statement name or dynamic cursor name. User Action: Pass a string that has a non-zero length.