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
Data Integrator (ODBC) defining varchar(max) in bind paramet
Jim Kosloskey
I have a situation where I want to exchange varchar(max) parameters with a stored procedure (happens to be SQL Server but that does not matter).
When binding the parameter is there a way to allow the length associated with the storage buffer to be acquired rather than specifically stating a length? Or must one state the length as the maximum size that a varchar(max), for example, can have.
If the length must be specified, this seems to defeat the puprose of the (max) attribute which is to allow dynamic space allocation.
This is using the Cloverelaf Data Integrator (Data Direct ODBC Drivers).
I also may have a need to handle varbinary(max) as well so the answer has far reaching implications.
Thanks
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Never mind - I figured it out and it is doable. Thanks
Tom Rioux
Jim,
Can you share with me the code where you are binding the parameters to be shared with the stored procedure. I'm wanting to incorporate some of this into some ODBC I'm doing here.
Thanks...
System
Originally posted by Steve Pringle
Jim,
I'm also curious how you solved this. We're dealing with something similar.
thanks,
Steve
Jim Kosloskey
Steve,
In the SQLBindParameter invocation I set the fourth argument (I can never recall the actual name of the argument) to SQL_VARCHAR(0).
The (0) does the trick.
If you would like to discuss in more detail how we deploy Stored procedure exchange email me.