Re: Can import from xls but what about csv???

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Rick Sawtell (quickening_at_msn.com)
Date: 02/01/05


Date: Tue, 1 Feb 2005 08:59:49 -0600


"Eric Lovelace" <EricLovelace@discussions.microsoft.com> wrote in message
news:50366645-7708-4956-9C49-48C585236E06@microsoft.com...
> Below is the query I use to import from an xls file. What about importing
> from a csv file. I change the name from ChallengeResponse.xls to
> ChallengeResponse.csv but I get an error. Anyone know any tricks to this?
>
> Select *
> FROM OPENDATASOURCE ('Microsoft.Jet.OLEDB.4.0', 'Data
> Source=C:\cr\dataload\ChallengeResponse.xls;Extended Properties=Excel
> 8.0')...ChallengeResponse$
>
>
> Thanks in advance,
>
> Eric

I'm not sure about using OPENDATASOURCE for a CSV, but you can definitely
use bcp as well as DTS.

Rick Sawtell
MCT, MCSD, MCDBA



Relevant Pages

  • Re: Importing csv file
    ... I think we need to know more about the csv file you're importing. ... the append query will not append ... > OpenQuery action ...
    (microsoft.public.access.macros)
  • Re: 3 things...PLEASE help...CSV/QUERY/CHART
    ... the .csv file and click open and the data will be imported ... Volume Names from the list- I need a query using criteria based on ... I would suggest that when you are importing the data from one ... of the cvs file manually, that you also create an Import Specification ...
    (microsoft.public.access.formscoding)
  • Hidden rows still visuale under CSV
    ... The file Extension .CSV stands for Comma Separated Values. ... When you save an Excel .xls file as a .CSV file only the ...
    (microsoft.public.excel.misc)
  • Text import works in Access but not in code - parameters issue?
    ... I'm having a strange issue with importing a csv file into an access ... database. ... When I run that query from access, it works ok, all the fields are ...
    (borland.public.delphi.database.ado)
  • Re: Read from XLS and substitute values in Ruby (Watir)
    ... Also,Is there a way to read from csv file or xls file because currently ... tokens as separate parameters for the text fields. ... Let's assume that tabs are used instead of spaces between the fields. ...
    (comp.lang.ruby)