You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

SQL Browser服务已运行但Visual Studio 2019中SSAS Cube仍报连接错误的排查求助

Troubleshooting "A connection cannot be made to redirector" Error When Connecting to SQL Server 2019 for SSAS Cube in VS2019

Let’s work through the key checks to resolve this issue, since you’ve confirmed the SQL Browser service for SQL Server 2014 Express is running but are targeting SQL Server 2019:

  • Confirm the SQL Browser service is active system-wide
    SQL Browser is a single machine-level service, not tied to a specific SQL Server version. Open SQL Server Configuration Manager, navigate to SQL Server Services, and double-check that the SQL Server Browser service shows a status of Running. Even if you started it for 2014, it might have stopped unexpectedly—restart it to ensure it’s fully operational.

  • Enable TCP/IP for your SQL Server 2019 instance
    SQL Browser depends on TCP/IP to route connection requests. In SQL Server Configuration Manager:

    1. Expand SQL Server Network Configuration > Protocols for [Your 2019 Instance Name]
    2. Set TCP/IP to Enabled
    3. Restart the SQL Server 2019 service to apply this change
  • Verify your connection string and instance details

    • If you’re using a named instance for SQL Server 2019, your connection string must include the full instance name (e.g., MyServer\SQL2019). Missing or misspelling this will break the redirector’s ability to find the instance.
    • For default instances, confirm port 1433 is open (default instances can sometimes connect without SQL Browser, but ensuring the service runs eliminates this variable).
  • Check firewall rules for critical ports

    • SQL Browser uses UDP port 1434 to respond to instance discovery requests. Make sure Windows Firewall (or any third-party firewall) allows inbound/outbound traffic on this port.
    • Also, open the port used by your SQL Server 2019 instance (default is 1433, or a custom port if you configured one).
  • Test connectivity outside Visual Studio
    Try connecting to your SQL Server 2019 instance with SQL Server Management Studio (SSMS). If SSMS fails to connect, the issue is server-side (not specific to VS2019). If SSMS connects successfully, double-check your SSAS Cube’s data source configuration in VS2019 for typos or incorrect authentication settings.

  • Validate SQL Browser service permissions
    Ensure the SQL Browser service runs under a valid account (the default NT AUTHORITY\Local Service has sufficient permissions). If you modified the service account earlier, confirm it has rights to access network resources and interact with SQL Server instances.

内容的提问来源于stack exchange,提问作者Bhagya

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.29 23:17:48