I'm writing an extended stored procedure for SQL Server in C++.
The user can provide OUT parameters which I can set using srv_paramsetoutput(). However, this seems to always fail when I try to set TEXT, VARCHAR(max) or NVARCHAR(max). Note that VARCHAR(max) is referred to internally as SRVBIGVARCHAR.
Is there a common mistake I could be making or are these datatypes inaccessible to xprocs when used as output parameters?