2

嘗試將SQL Server數據庫反向工程到數據庫項目中時收到超時錯誤。我們在該數據庫上沒有任何空間索引(我檢查了using this)。SchemaModel.SqlSpatialIndex:超時已過期

我沒有超時的連接設置(

3/8/2016 9:46:00 AM An error was received from SQL Server while attempting to reverse engineer elements of type Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlSpatialIndex: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. 
3/8/2016 9:46:00 AM An exception was generated. 
Unable to reconnect to database: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. 
3/8/2016 9:46:00 AM An error was received from SQL Server while attempting to reverse engineer elements of type Microsoft.Data.Tools.Schema.Sql.SchemaModel.SqlSpatialIndex: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. 
3/8/2016 9:46:00 AM Finished importing database. 
3/8/2016 9:46:00 AM A summary of the import was saved to the following location: C:\Temp\Import From Prod 2\Import Schema Logs\Import From Prod 2_20160308024125.log 
3/8/2016 9:46:00 AM Click Finish to continue... 

步驟來重現問題:

  1. 打開Visual Studio 2013
  2. 從菜單中,單擊「查看「/」Sql Server對象瀏覽器「
  3. 連接到SQL Server(在我們的例子中,UAT服務器)並選擇一個數據庫
  4. 從數據庫的上下文菜單中選擇「創建新項目」
  5. 按下「開始」

我如何找出什麼是真正超時?我該如何解決?

+0

在「C:\ Temp \ Import From Prod 2 \ Import Schema Logs \ Import From Prod 2_20160308024125.log」中是否有用? – Matt

回答

0

你能增加可用的RAM數量嗎?這個確切的錯誤開始顯示了我與現有的數據庫項目和本地數據庫之間的模式比較。當我關閉除Visual Studio之外的所有應用程序時問題已解決。這讓我覺得我的電腦沒有足夠的資源在我打開幾個應用程序的時間內完成任務。

0

對我而言,一個選項是增加HKEY_CURRENT_USER \ Software \ Microsoft \ VisualStudio \ NN.N \ SQLDB \ Database \ QueryTimeoutSeconds的值並根據this重新啓動Visual Studio。但是,雖然成功,但需要將近5分鐘才能進行比較。

後來我發現我們最近將構建目標更改爲Sql Server 2016,但仍然引用2012 master.dacpac。我更新了對2016年master.dacpac的參考,並且比較現在在不到一分鐘內完成。

相關問題