-
Richard Hartman
- PowerBuilder
- Saturday, 3 January 2026 02:04 AM UTC
I have some code where setttransobject() does not seem to be having an effect.
The original application was using Sybase, which we are porting to use MS SQL Server. This was working with the sybase version as far as I know.
I got a suggestion to update the table names from "mytable" to "database2.dbo.mytable", and that works. But I have confirmed that the object is still connected to the primary database despite the call to settransobject(), by replacing the datawindow object that queries tables in database2 with a datawindow object that queries tables in database1, and it worked. So the updated datawindow object is getting data from database2 by explicitly including it in the table name.
Are there known issues with settransobject() using ms sql server?
(I don't think I can produce toy code for this situation because it is spread out among the different objects and events involved.)
What could I investigate?
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.