【问题标题】:Connection String for Desktop App to external Web Server DB桌面应用程序到外部 Web 服务器数据库的连接字符串
【发布时间】:2013-08-14 04:50:09
【问题描述】:

我正在尝试从桌面应用程序获取工作连接字符串到外部(亚马逊)Web 服务器上的数据库。现在我收到用户消息登录失败,这让我觉得我很接近了。

我可以转到服务器上的数据库并使用“TestGuy”的 SQL 登录名登录并运行查询,所以我知道他的凭据有效

这是我的连接字符串

 string remote = @"data source=ec2-54-234-254-230.compute-1.amazonaws.com,1433;uid=testguy;pwd=****;Initial Catalog=RMSScrum;Application Name=RMS;pooling=false";

+$exception {"Login failed for user 'testguy'."}    System.Exception {System.Data.SqlClient.SqlException}

我还在我的服务器上打开了 1433 端口,我是关闭了还是遗漏了什么?

【问题讨论】:

    标签: c# sql database-connection connection-string


    【解决方案1】:

    关闭。

    你有没有打开“Sql Server 配置管理器”

    1. SQL Server 网络配置
    2. ……协议”
    3. TCP/IP
    4. IP 地址选项卡

    您应该会看到一个具有 PUBLIC IP - 确保已启用框设置为“是”。其次,确保底部的“IPALL”的动态端口为空白,并确认 TCP 端口为 1433。

    1. 可能只是连接字符串问题? http://www.connectionstrings.com/sql-server/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-05-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-16
      相关资源
      最近更新 更多