Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8194647
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T04:53:33+00:00 2026-06-07T04:53:33+00:00

I am trying to execute a very simple example of using SQLOLEBD to retrieve

  • 0

I am trying to execute a very simple example of using SQLOLEBD to retrieve records from a CSV file using VBScript.
I am getting the error:
Line: 4
Char: 1
Error: Invalid connection string attribute”
Code: 80004005
Source: Microsoft OLD DB Provider for SQL Server
Can somebody please straighten me out?

Set objConnection = CreateObject("ADODB.Connection")
Set objRecordSet = CreateObject("ADODB.Recordset")

objConnection.Open "Provider=SQLOLEDB; Data Source= C:\Users\public\; Extended Properties=""text;HDR=YES;FMT=Delimited"""

objRecordset.Open "SELECT * FROM employees.csv, objConnection, adOpenStatic, adLockOptimistic, adCmdText"

Do Until objRecordset.EOF
Wscript.Echo "name: " & objRecordset.Fields.Item("Name")
objRecordset.MoveNext
Loop

wscript.echo "Finished"

employees.csv

id,name,grade
1,”Ezequiel, Justin”,1
2,Charlie Sheen,4
3,”Name, Your”,8
4,Another Guy,16

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T04:53:34+00:00Added an answer on June 7, 2026 at 4:53 am

    The immediate cause of your error is using the wrong OLE DB provider (your Jet provider error might be a 32-bit vs 64-bit issue), but it appears that your real goal is to join data in a text file with data in a table.

    Two fairly simple options are a) load the file into a SQL Server table using one of the various bulk loading methods and then join the tables as usual, or b) join the table on the file directly using OPENROWSET(). If you’ll do this a lot, or if you have a lot of data, the first approach is probably better because you can leverage the database engine for indexing and better join performance.

    You could use SSIS for this too, but it’s probably overkill in this scenario.

    And mentioning your SQL Server version and other specific details is always useful.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to retrieve image file from my local server. Here is my (very
I'm trying to run a very simple Oracle procedure from PHP, using the following
I am currently trying to create a very simple thread pool using std::thread .
I am trying to implement a very simple service example. The user inputs the
Im trying to get to run a very simple example in liquibase 1.9.5 (see
I am trying to execute a very simple script. It only prints the first
being a beginner i m trying to develop a very simple service using express
I am trying to build a very simple C++ program using the Maven NAR
I'm having trouble getting this simple query to execute. I'm using nameless parametized queries
I am trying to write data from a .csv file to my postgreSQL database.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.