Sql server 2008 在Azure Virtual Matchine上获取与网络相关的错误SQL Server 2008
我对Azure非常陌生。我创建了承载SQL Server 2008的Azure虚拟机 我的应用程序使用ASP.NETMVC4,托管在AmazonWeb服务上。该应用程序运行良好,我可以通过ManagementStudio连接到数据库。 然而,我现在有时会遇到这个错误Sql server 2008 在Azure Virtual Matchine上获取与网络相关的错误SQL Server 2008,sql-server-2008,azure,Sql Server 2008,Azure,我对Azure非常陌生。我创建了承载SQL Server 2008的Azure虚拟机 我的应用程序使用ASP.NETMVC4,托管在AmazonWeb服务上。该应用程序运行良好,我可以通过ManagementStudio连接到数据库。 然而,我现在有时会遇到这个错误 A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
我不知道如何解决这个问题。
我是否需要以SQL Azure的形式实现到数据库的重试连接,我现在使用传统的连接字符串和NHibernate,使用域名(abc.cloudapp.net)连接SQL Server
如果在Azure虚拟机上使用SQL Server 2008,则还有其他问题需要考虑。
作为@SqlACID的注释,这是我当前的连接字符串。
服务器=domain.cloudapp.net;数据库=db;用户ID=uid;密码=pwd;其中,出于安全原因,我将实际值更改为domain、db和pwd
然而,这种情况在昨天发生了三次
非常感谢。与SQL Server的连接可能有问题 可能是
非常感谢@Luv的快速回复。我认为用户名和密码是正确的,因为我可以连接到数据库,它正在工作。但是有时我会出错。你能发布你的连接字符串吗?@SqlACID我添加了连接字符串,谢谢