简体   繁体   English

VB.Net数据源连接错误

[英]VB.Net data source connection error

i am using VS2008 VB.net and sql 2008. 我正在使用VS2008 VB.net和sql 2008。

  • I tried to connect a new datasource using Microsoft SQL Server Database File (SqlClient) it gives an error; 我试图使用Microsoft SQL Server数据库文件(SqlClient)连接新的数据源,但出现错误; Microsoft SQL Server数据库文件

  • I tried to connect a new datasource using Microsoft SQL Server (SqlClient) it gives an error; 我试图使用Microsoft SQL Server(SqlClient)连接新的数据源,但出现错误; Microsoft SQL Server(SqlClient)

In the first instance, it appears you're attempting to attach to an active SQL Server database file that is actually being used by SQL Server and/or the permissions to the file don't grant you access to it. 在第一种情况下,您似乎正在尝试附加到SQL Server实际使用的活动SQL Server数据库文件和/或对该文件的权限不授予您对其的访问权限。 Either stop the local SQL Server to access the file, or find out how you would go about getting the file's permissions modified such that you can access it. 要么停止本地SQL Server来访问文件,要么了解如何修改文件的权限以便可以访问它。

In the second instance, it sounds like an older version of the SqlClient simply doesn't support connection to database servers later than SQL Server 2005, as the error message implies. 在第二种情况下,听起来像旧版本的SqlClient根本不支持晚于SQL Server 2005的数据库服务器的连接,这是错误消息所暗示的。 That would suggest the possibility of installing later patches/updates to get your configuration up to date. 这表明可能会安装更高版本的补丁/更新以使您的配置保持最新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM