当试图将Server数据库反向工程到数据库项目时,我收到了一个超时错误。该数据库上没有任何空间索引(我检查了使用这个)。
我在连接上没有超时设置(
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...复制这一问题的步骤:
我怎样才能弄清楚什么是真正的超时?我该怎么解决这个问题?
发布于 2016-05-25 22:16:29
你能增加可用内存的数量吗?通过对现有db项目和本地数据库之间的模式比较,这个准确的错误开始出现。当我关闭除Visual之外的所有应用程序时,问题都得到了解决。这让我觉得我的电脑没有足够的资源在我需要的时间内完成任务当我有几个应用程序打开。
发布于 2017-01-05 00:03:45
一个对我有用的选项是增加HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\NN.N\SQLDB\Database\QueryTimeoutSeconds的值并基于这重新启动Visual。但是,虽然取得了成功,但要进行比较需要近5分钟的时间。
后来我发现,我们最近将构建目标更改为Server 2016,但仍在引用2012年的master.dacpac。我更新了对2016年master.dacpac的引用,现在不到一分钟就完成了比较。
https://stackoverflow.com/questions/35872014
复制相似问题