SQLNCLI11提供程序未在本地计算机中注册 [英] The SQLNCLI11 Provider is not registered in your local machine

查看:826
本文介绍了SQLNCLI11提供程序未在本地计算机中注册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关调用

实时(JIT)调试而不是此对话框的详细信息,请参阅此消息的结尾。



**************异常文本**************

System.InvalidOperationException:'SQLNCLI11'提供者是没有在本地机器上注册。

在System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr,DataSourceWrapper&datasrcWrapper)

在System.Data.OleDb.OleDbConnectionInternal .. ctor(OleDbConnectionString constr,OleDbConnection连接)

at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options,DbConnectionPoolKey poolKey,Object poolGroupProviderInfo,DbConnectionPool pool,DbConnection owningObject)

在System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions选项,DbConnectionPoolKey poolKey,对象poolGroupProviderInfo,DbConnectionPool池,DbConnection owningConnection,Db) ConnectionOptions userOptions)

在System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection,DbConnectionPoolGroup poolGroup,DbConnectionOptions userOptions)

在System.Data.ProviderBase.DbConnectionFactory.TryGetConnection( DbConnection owningConnection,TaskCompletionSource`1 retry,DbConnectionOptions userOptions,DbConnectionInternal&connection)

在System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection,DbConnectionFactory connectionFactory,TaskCompletionSource`1 retry,DbConnectionOptions userOptions)

在System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection,DbConnectionFactory connectionFactory)

在System.Data.OleDb.OleDbConnection.Open()

在System.Data.Common.DbDataAdapter.FillInternal(DataSet数据集,DataTable [] datatables,Int32 startRecord,Int32 maxRecords,String srcTable,IDb命令命令,CommandBehavior行为)

在System.Data.Common.DbDataAdapter.Fill(DataTable [] dataTables,Int32 startRecord,Int32 maxRecords,IDbCommand命令,CommandBehavior行为)

在System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)

at HMS__Project_.DataSet44TableAdapters.Login_TblTableAdapter.Fill(Login_TblDataTable dataTable)

at HMS__Project_.Patient.Patient_Load(Object发件人,EventArgs e)

在System.Windows.Forms.Form.OnLoad(EventArgs e)

在System.Windows.Forms.Form.OnCreateControl()

在System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

在System.Windows.Forms.Control.CreateControl()

在System。 Windows.Forms.Control.WmShowWindow(Message&m)

在System.Windows.Forms.Control.WndProc(Message&m)

在System.Windows.Forms.ScrollableControl。 WndProc(Message&m)

在System.Windows.Forms.Contain在System.Windows.Forms.Form.WndProc(Message&m)的System.Windows.Forms.Form.WmShowWindow(Message&m)

的erControl.WndProc(Message&m)



在System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&m)

在System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&m)<在System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)中的

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: The 'SQLNCLI11' provider is not registered on the local machine.
at System.Data.OleDb.OleDbServicesWrapper.GetDataSource(OleDbConnectionString constr, DataSourceWrapper& datasrcWrapper)
at System.Data.OleDb.OleDbConnectionInternal..ctor(OleDbConnectionString constr, OleDbConnection connection)
at System.Data.OleDb.OleDbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject)
at System.Data.ProviderBase.DbConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)
at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
at System.Data.ProviderBase.DbConnectionInternal.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory)
at System.Data.OleDb.OleDbConnection.Open()
at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
at HMS__Project_.DataSet44TableAdapters.Login_TblTableAdapter.Fill(Login_TblDataTable dataTable)
at HMS__Project_.Patient.Patient_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

推荐答案

你没有您的计算机上安装了SQL Native Client,或者您有32位版本,但您需要64位版本...

根据错误,您需要SQL Native Client 11,它是SQL 2012或2014的一部分.. 。

您可以从SQL磁盘或从这里安装它: http://www.microsoft.com/en-us/download/details.aspx?id=29065 [ ^ ]
You have no SQL Native Client installed on your machine or you have 32 bit version but you need 64 bit version...
According to the error you need SQL Native Client 11 which is part of SQL 2012 or 2014...
You can install it from the SQL disk or from here: http://www.microsoft.com/en-us/download/details.aspx?id=29065[^]


这篇关于SQLNCLI11提供程序未在本地计算机中注册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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