- Frank Zettanucci
- PowerBuilder
- Thursday, 9 June 2022 08:05 PM UTC
I created a sql server stored procedure, works fine in both the SQL Query tools and in a datawindow i created which uses Stored Procedure as the definition source
In the PB IDE Painter I can retrieve the datawindow results, it executes SP just fine using PREVIEW when in the IDE, seems legit.
When I execute the runtime build of the app the datastore I have created with the datawindow keeps returning -1
When I debug the runtime the arguments are all correct, and yet its not pulling any data.
Connection details:
DBMS = SNC SQL Native Client(OLE DB)
DBParm = appname='APPNAME',Identity='SCOPE_IDENTITY()',database='DB_NAME',CommitOnDisconnect='No',StaticBind='0',ncharbind='1',DisableBind='0',OJSyntax='ANSI',PBTrimCharColumns='YES',DelimitIdentifier='No'
Long LL_RC
datastore LDS_Data
LDS_Data = create datastore
LDS_Data.DataObject = 'd_sp_1x3p'
LDS_Data.SetTransObject(GUO_SQLSRV)
LL_RC = LDS_Data.Retrieve(AL_ID, AS_Type, AL_Acct_ID)
But LL_RC always returns -1, There should be 450+ rows ...
I can connect and do every other crud imaginable, but for some reason SP wont retrieve,
I do not see any SQLErrText strings or error codes being thrown.
Any thoughts on what else I should be looking at?
F.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.