I am currently using the 30 free trial of Powerbuilder 2017 R2
I just migrated some old pbl files and testing the intial connection to MS SQL server
I changed my DB parameters from MSS to SNC (i have the native clients installed successfully)
when i run my powerbuilder code, it comes up with "MSSQL state Error 42S02 Object not identified"
when its trying to dynamically select from a table.
If i prefix the table name with "mydatabase.myrole." it then works
How do i bypass this, as i have thousands of lines of code referencing tables, functions, views and procs?
Yesterday, a fellow colleague pointed me to:
https://www.appeon.com/support/documents/appeon_online_help/pb2017r2/connecting_to_your_database/ch10s06.html
which doesn't help much
any help would be great
sqlca.dbparm = "Database='wgctest1',Provider='SQLNCLI11'"
if i do this.... it works....
sqlca.DBParm = "ProviderString='database=mydatabase"
integer li_count
Select isnull(count(*),0) into:li_count from mydatabase.dbo.mytable using sqlca;
Messagebox('Error',sqlca.SQLErrText + " (" + String(sqlca.SQLDBCode) + ")")
messagebox('li_count',string(li_count))
if i do this... it doesn't
sqlca.DBParm = "ProviderString='database=mydatabase"
integer li_count
Select isnull(count(*),0) into:li_count from mydatabase.dbo.mytable using sqlca;
Messagebox('Error',sqlca.SQLErrText + " (" + String(sqlca.SQLDBCode) + ")")
messagebox('li_count',string(li_count))
get the error 42S02 Error that says "object mytable is invalid (208)