Connecting to Azure DB
- How-to
- Yasir Masood
- PowerBuilder
- Tuesday, 11 February 2020 10:46 PM UTC
Hi guys.
We are trying to connect to an Azure DB using PB 2017, but get the following error
SQLSTATE = HY000
Microsoft SQL Server Native Client 10.0
Server name cannot be determined. It must appear as the first segment of the server's dns name (servername.database.windows.net).
Some libraries do not send the server name, in which case the server name must be included as part of the user name (username@servername).
In addition, if both formats are used, the server names must match.
Here is my INI file
[database]
DBMS = "SQLNCLI10"
DBParm="PROVIDER='SQLNCLI10',DATASOURCE='aztrmsql1t-.database.windows.net',PROVIDERSTRING='database=TEST',PBTrimCharColumns='YES',INTEGRATEDSECURITY='SSPI',OJSyntax='PB'"
LogId=sa
LogPassword=
ServerName=aztrmsql1t-sc.334f2f6a6f98.database.windows.net
Database=TEST
PlantId=
UseNTAuth=Y
SQLServVer=8
Hosted=Y
UserId=sysadm
DatabasePassword=SYSADM
;Lock=RL
Lock=RC
Columns=8
StayConnected=1
TableSpace=
DBEFileSetName=
TableDir=1
AutoCommit=0
Can someone please help.
Thanks
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.