[英]Sqlcmd from app service to local SQL Server using hybrid connection
I have setup an Azure app service with a hybrid connection to my local on premise SQL Server 2014. 我已经设置了一个Azure应用服务,该服务与我的本地SQL Server 2014的混合连接。
The connection is just fine I can ping it from app service using tcpping. 连接很好我可以使用tcpping从app服务ping它。
However I cannot make the connection to the database. 但是我无法建立与数据库的连接。 The
sqlcmd
command fails complaining about the user / pass - but they are correct. sqlcmd
命令无法抱怨用户/传递 - 但它们是正确的。
I am using this command 我正在使用此命令
sqlcmd -S <servername> -d Sample_Dev -U xxx -P xxxx -I
I am getting this error: 我收到此错误:
Sqlcmd: Error: Microsoft SQL Server Native Client 11.0 : Login failed for user 'xxx'
Sqlcmd:错误:Microsoft SQL Server Native Client 11.0:用户'xxx'登录失败
I have searched online for that error and I am unable to make it work. 我已在网上搜索该错误,但我无法使其正常工作。 Can you please help me on that ?
你能帮帮我吗? I really appreciate your help.
我非常感谢你的帮助。
Thanks 谢谢
我能够通过直接在mssql上创建数据库用户而不使用AD来使其工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.