SQL Server data import connection issue

Keith Banbury 20 Reputation points
2024-06-25T10:36:57.11+00:00

I am getting the following error message when trying to import data from an excel spreadsheet.

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied. (Microsoft OLE DB Provider for SQL Server)

I am running SSMS v20.1 on Windows 10 using a free express version of SQL. I have created a local server and the excel file is on my laptop as well. I previously had an issue with connecting to the excel file but that was resolved. Below is what I see before I get the message. The fields have self populated I have not keyed them in.

Pic 4

SQL Server Other
{count} votes

Accepted answer
  1. Erland Sommarskog 121.4K Reputation points MVP Volunteer Moderator
    2024-06-25T21:35:08.71+00:00

    What other options for destinations do you have? Microsoft OLE DB Provider for SQL Server is a very old and mouldy provider, and it has no knowledge about localdb. That would explain the connection error.

    Also, I know that you are running the RTM version of SQL 2017. You should download and install the last Cumulative Update for SQL 2017, which was CU31 to get access to bug fixes and improvements.

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. MikeyQiaoMSFT-0444 3,300 Reputation points
    2024-06-26T06:57:25.8833333+00:00

    Hi,Keith Banbury

    I suggest that you try using a regular SQL Server instance to perform data import and export.

    The aforementioned blank fields being auto-populated indicate that you have successfully connected to LocalDB. Do you have to use LocalDB for development?


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.