C #"sqlncli.1 provider not registered on the Local Computer" error prompt solution

Source: Internet
Author: User

Today, when oledbdataadapter is used, the following error occurs: "sqlncli.1 provider is not registered on the local computer." Baidu, Google, and I checked related solutions on the Internet. The solution described in many articles on the internet is that the SQL native client component is not installed when SQL Server is installed, so you can install it separately. However, after confirming the installation list, I found that I have installed this component. That is to say, there must be a problem with the related configuration. The reason is that I have used a later version of SQL.
Server opens a database file created with a lower version. After careful troubleshooting, it is not surprising. The selectcommand ---> connection ---> connectionstr field is incorrectly configured on the interface. Because sql2008 uses sqlncli10, its field value should be

Provider = sqlncli10; Data Source = (local); Pwd = password; persist Security info = true; user id = sa; initial catalog = Local Database Name

Test passed!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.