Solved

How do I change the delimiter used by OPENROWSET when reading a text file?

Posted on 2008-10-31
2
1,483 Views
Last Modified: 2012-08-13
Hi folks,

I am using OPENROWSET to read a delimited text file created by another application. Here's the command I'm using:

  SELECT *
  FROM OPENROWSET(
    'MSDASQL',
    'Driver={Microsoft Text Driver (*.txt; *.csv)};DefaultDir=E:\MPS_REPT_DATA;',
    'SELECT TOP 100 PERCENT * FROM E:\MPS_REPT_DATA\test1.txt')

My question is this: is it possible to change the delimiter used to separate columns?

Thanks,

Jim
0
Comment
Question by:jrollins138
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 22854380
no, at least not that I know. I might be wrong, though, and learning something new!
0
 
LVL 15

Expert Comment

by:MohammedU
ID: 22859757
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question