分析数据库架构需要花费数小时 [英] Analyzing database schema takes hours

查看:115
本文介绍了分析数据库架构需要花费数小时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS2010中使用新的SQL2005数据库项目. 我确实导入了对象和设置,并构建了项目. 它似乎停留在分析数据库架构"上.完成3267次操作后,您的数据库项目将准备就绪."

Using a new SQL2005 database project in VS2010. I did import objects and settings, and built the project. It seems to be stuck at 'Analyzing database schema. Your database projects will be ready after 3267 operations are completed'.

这似乎需要几个小时. 有什么办法可以加快速度吗?

This seems to take hours. Is there any way to speed this up?

我在某处读到,如果我的.dbmdl文件太大,则可能会发生这种情况,但是它只有2.6MB.

I read somewhere that this may happen if my .dbmdl file is too big, but it's just 2.6MB.

推荐答案

  1. 转到项目设置
  2. 点击数据库设置按钮
  3. 操作"标签下

  1. Go to Project Settings
  2. click on the Database Settings button
  3. Under the Operational tab

3.1取消选中自动创建静力学

3.2取消选中自动更新统计信息复选框.

3.2 Uncheck Auto update statistics checkbox.

这将使您的手术次数减少约90%,并且分析应立即完成.

This will reduce your numbers of operations by about 90% and the analysis should finish instantly.

这篇关于分析数据库架构需要花费数小时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆