Android Question RDC refuses to Commit Trans

tigrot

Well-Known Member
Licensed User
Longtime User
Hi everybody,
I was testing a new app based on RDC.
I have a MSSQL DB and I need to store a number of rows all related to a single transaction.
When I call "commit trans" I get an error "No related transaction active".
Since the start transaction is called I don't understand why this happens.
The query are mixed to commands. Are there hidden transactions?
Best regards
Mauro Zanin
 

tigrot

Well-Known Member
Licensed User
Longtime User
This is not easy to handle: my transaction is made up of an INSERT(an empty row, just to get ID), a SELECT for @@IDENTITY(to get ID), two INSERT for Master Records and a variable number of images, one for each row.
I have tested JRDC but the same working program(with RDC) works for select, but fails for ExecuteCommand. I wanted to modify it...
Thank you I'll follow a different aproach than Start/Commit.
 
Upvote 0

tigrot

Well-Known Member
Licensed User
Longtime User
I Get parameter 1 error (along a HTTP protocol header with error 500). The client interface performs bad. I send a trace of the two sides:
Server:


This is client
 
Upvote 0

tigrot

Well-Known Member
Licensed User
Longtime User
Hi Erel
Forgive me, I had to terminate the project with old version of RDC. This is the config file of JRDC.



The failing SQL is readuser, which reads the user... Since Società is a blog(dunno why...) I had to cast the value to a short string... Or the RDC crashed...

Thank you
Mauro


Best regards
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…