首页 文章

SQL Azure登录失败

提问于
浏览
3

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

我've added my current IP to the Azure firewal' ls规则列表(http://www.nickharris.net/2010/08/change-firewall-rule-for-sql-management-studio-connection-to-sql-azure/

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

Login failed for user 'xxxx'. This session has been assigned a tracing ID of 'xxxxx'. Provide this tracing ID to customer support when you need assistance. (Microsoft SQL Server, Error: 18456)

怎么了 ?

1 回答

  • 3

    一些想法:

    • 您不需要在服务器名称前放置"tcp:" . 只需yourserver.database.windows.net即可 .

    • 只需用户名就行了(不需要用户名@ server) .

    • 您使用的是SQL Server Management Studio 2008 R2吗?

    • 防火墙是否可以阻止端口1433?

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

相关问题