infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
ODBC SQLExecute limitation
System
Originally posted by Brian Sweetland
I recently had an issue with running server Stored Procedures via ODBC inside a TCL proc and found a solution, but not sure I understand the issue as I
Find more posts tagged with
Clovertech
Comments
david_barr
It's helpful to call SQLGetDiagRec after each error to get the reason for the failure. Your assumption about a byte limit may be incorrect. If you get the error messages then you don't have to make any assumptions.
System
Originally posted by Brian Sweetland
Added this line.
if { ($err == "SQL_ERROR") || ($err == "SQL_ERROR_WITH_INFO") } {
lappend logFileOutputMsg " ERROR while Executing SQL Stored Procedure...$SQLCmd"
set err2 [odbc SQLGetDiagRec SQL_HANDLE_STMT $hstmt 1 SqlState NativeError MessageText 511 TextLength]
lappend logFileOutputMsg " SqlState>$SqlState<..."
lappend logFileOutputMsg " NativeError>$NativeError<..."
lappend logFileOutputMsg " MessageText>$MessageText<..."
}
This was the response from first Error.
SqlState>HY000<...
NativeError>0<...
MessageText>[Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt<...
Based on the