SQL CE 数据库中的行数和空间使用情况
您好,我有两个 DB1.sdf 和 DB2.sdf 文件(sql ce)。我想比较一下两者。 我想检查每个数据库的行数和使用的空间。
有什么办法可以做到这一点吗?还有什么办法可以在两个数据库中进行相应的表对表比较?
Hi I have two DB1.sdf and DB2.sdf file (sql ce). I want to compare the two.
I want to check the no of rows and the space used in each of the database.
Is there any way to do that? Also is there any way to to a corresponding table to table comparision in the two databases?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用它来尝试获取行数:
如果失败,您可以使用“SELECT COUNT(*) FROM table”
使用的空间不可用,但您可以根据此进行估计:http://support.microsoft.com/kb/827968
对于数据比较,最好的方法可能是将每个 sdf 迁移到 SQL Server Express 数据库,并使用 SQL Server 数据比较工具
You can use this to try to get row count:
If that fails, you can use "SELECT COUNT(*) FROM table"
Space used is not available, but you can estimate based on this: http://support.microsoft.com/kb/827968
For data comparision, the best approach would probably be to migrate each sdf to a SQL Server Express database, and use a SQL Server Data Compare tool