Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8667

PB and MS Azure SQL database

$
0
0

Does anyone have experience connecting a PowerBuilder application to a Microsoft Azure SQL database?  I am using the SNC driver and PB 12.5.2.  The connection appears to work but I am getting an error when executing an in-line stored procedure call.

 

“Microsoft SQL Server Native Client 10.0
Cannot use the OUTPUT option when passing a constant to a stored procedure.”

 

The stored procedure does indeed have two output parameters.  This same application works fine when connecting to a database hosted on a local SQL Server instance.

 

Here is how I am setting the DBParm:

 

SQLCA.DBParm = "Provider='SQLNCLI10'"
SQLCA.DBParm += ", AppName='" + gs_appname + "'"
SQLCA.DBParm += ", Database='" + ls_db_name + "'"
SQLCA.DBParm += ", Identity='IDENT_CURRENT()'"
SQLCA.DBParm += ", TrimSpaces=1"
SQLCA.DBParm += ", StaticBind=0"
SQLCA.DBParm += ", TrustedConnection=0"
SQLCA.DBParm += ", Encrypt=1"
SQLCA.DBParm += ", TrustServerCertificate=0"


Viewing all articles
Browse latest Browse all 8667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>