Ssms
從 ssms 連接到 sql azure 時會拋出異常“sys.configurations”
從 MSSQL Server MGMT Studio 連接到 Sql Server Azure,出現以下異常:
Cannot connect to xxxxxxxxx.database.windows.net An exception occured while executing a Transact-SQL Statement or batch. (Microsoft.SqlServer.ConnectionInfo) sql management studio connection to windows azure invalid exception object name 'sys.configurations'
有什麼線索嗎?
And here's the whole message : Cannot connect to ndkkyxvogj.database.windows.net. =================================== An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo) Program Location: at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(String sqlCommand) at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.CheckDacAndSmo(SqlConnection sqlConnection) at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorer.ValidateConnection(UIConnectionInfo ci, IServerType server) at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser() =================================== Invalid object name 'sys.configurations'. (.Net SqlClient Data Provider) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.00.9164&EvtSrc=MSSQLServer&EvtID=208&LinkId=20476 Server Name: ndkkyxvogj.database.windows.net Error Number: 208 Severity: 16 State: 1 Line Number: 17 Program Location: at Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSql(ExecuteTSqlAction action, Object execObject, DataSet fillDataSet, Boolean catchException) at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteWithResults(String sqlCommand)
可能有幾個問題 -
- 防火牆:您需要將本地 IP 範圍添加到允許的 SQL Azure 防火牆規則中。請參閱:如何:配置伺服器級防火牆設置(Windows Azure SQL 數據庫)
- 您使用的是舊版本/不受支持的 SSMS。如果是,則升級到最新版本(例如 SSMS 2008R2 - build 10.50。** 參考:SQL Azure 2011 年 7 月服務版本
3. 您可能會遇到 -無效的對象名稱“sys.configurations”。(Microsoft SQL Server,錯誤:208)