在Visual Studio中创建的SQL Server数据库项目和导入数据库中出现此错误-Microsoft.VisualStudio.Data.Tools.Design.Core.Common.SqlClient.SqlUtils的类型初始值设定项引发了异常. [英] In visual studio- created SQL server database project and import database gives this error- The type initializer for 'Microsoft.VisualStudio.Data.Tools.Design.Core.Common.SqlClient.SqlUtils' threw an exception.-

查看:276
本文介绍了在Visual Studio中创建的SQL Server数据库项目和导入数据库中出现此错误-Microsoft.VisualStudio.Data.Tools.Design.Core.Common.SqlClient.SqlUtils的类型初始值设定项引发了异常.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个新的SQL Server数据库项目.项目已添加.我右键单击了项目,然后说导入".导入数据库.

I created a new SQL server database project. Project got added. I right clicked on project and said "Import" to import a database.

在导入"标签中,我喜欢新建连接"我要在其中添加服务器名称和数据库名称以进行映射的位置.在此过程中,我得到一个错误- ""Microsoft.VisualStudio.Data.Tools.Design.Core.Common.SqlClient.SqlUtils的类型初始化程序" 引发了异常.".你能建议一下吗?

In the Import tab I cliked on "New Connection" where I want to add server name and database name to map. During this process I get an error- "The type initializer for 'Microsoft.VisualStudio.Data.Tools.Design.Core.Common.SqlClient.SqlUtils' threw an exception.".  Could you please suggest.

感谢&问候

Usha.

推荐答案

您正在运行哪个版本的VS?您是否有权使用所需的数据库对象?

What version of VS you are running? Do you have right to the DB objects that you need?

尝试使用另一版本的VS或在另一台计算机上尝试相同的版本.

Try another version of VS or try this same version in another machine.

chanmm


这篇关于在Visual Studio中创建的SQL Server数据库项目和导入数据库中出现此错误-Microsoft.VisualStudio.Data.Tools.Design.Core.Common.SqlClient.SqlUtils的类型初始值设定项引发了异常.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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