Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/svg/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
SQL Azure登录失败_Azure_Ssms_Azure Sql Database - Fatal编程技术网

SQL Azure登录失败

SQL Azure登录失败,azure,ssms,azure-sql-database,Azure,Ssms,Azure Sql Database,我正在尝试连接到存储在SQL Azure平台中的数据库。我的ASP.NET应用程序正确连接到数据库,但SQL Management Studio没有 我已将当前IP添加到Azure firewal的规则列表() 然后,根据连接字符串中的数据,我传递服务器名(tcp:xxxxx.database.windows.net),用户名(xxx@yyy)还有密码。我仍然得到错误 用户“xxxx”登录失败。 已为该会话分配了一个跟踪ID“xxxxx”。当您需要帮助时,请向客户支持提供此跟踪ID。(Micro

我正在尝试连接到存储在SQL Azure平台中的数据库。我的ASP.NET应用程序正确连接到数据库,但SQL Management Studio没有

我已将当前IP添加到Azure firewal的规则列表()

然后,根据连接字符串中的数据,我传递服务器名(tcp:xxxxx.database.windows.net),用户名(xxx@yyy)还有密码。我仍然得到错误

用户“xxxx”登录失败。 已为该会话分配了一个跟踪ID“xxxxx”。当您需要帮助时,请向客户支持提供此跟踪ID。(Microsoft SQL Server,错误:18456)

怎么了?

一些想法:

  • 您不需要在服务器名称前加上“tcp:”。简单地说,您的server.database.windows.net应该可以工作
  • 只要用户名就可以了(不需要username@server)
  • 您正在使用SQL Server Management Studio 2008 R2吗
  • 防火墙会阻止端口1433吗

当您说您的ASP.NET应用程序连接到SQL Azure时,该应用程序是在本地运行还是在Windows Azure数据中心内作为web角色运行?

我已关闭Windows防火墙。而且,我按照你的建议做了。我使用Microsoft SQL Server 2008(RTM)-10.0.1600.22(X64)企业版您需要R2版本的SSMS。我想你有RTM版本