dbTalk Databases Forums  

importing space delimited text file

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss importing space delimited text file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jesbuddy07
 
Posts: n/a

Default importing space delimited text file - 12-06-2006 , 01:04 PM






i've been looking on this subject in this group with no luck.

i've been trying to import a text file which has multiple space
delimited column to a SQL server 2000.

i can't seem to find any answer on this subject. i tried typing space
on the delimiter field, but i get
"error source: microsoft data transformation services flat file rowset
provider

error description: invalid delimited data: text qualifier must be
followed by a column delimiter(except the last column).

context: error calling openrowset on the provider"

could anyone help?


Reply With Quote
  #2  
Old   
Arnie Rowland
 
Posts: n/a

Default Re: importing space delimited text file - 12-06-2006 , 01:24 PM






Are you sure that you are not referring to 'fixed width' fields?

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"jesbuddy07" <jesbuddy07 (AT) gmail (DOT) com> wrote

Quote:
i've been looking on this subject in this group with no luck.

i've been trying to import a text file which has multiple space
delimited column to a SQL server 2000.

i can't seem to find any answer on this subject. i tried typing space
on the delimiter field, but i get
"error source: microsoft data transformation services flat file rowset
provider

error description: invalid delimited data: text qualifier must be
followed by a column delimiter(except the last column).

context: error calling openrowset on the provider"

could anyone help?




Reply With Quote
  #3  
Old   
jesbuddy07
 
Posts: n/a

Default Re: importing space delimited text file - 12-06-2006 , 03:38 PM



yes i'm sure.
i need to use delimited because the width of the columns are not fixed
for every column.
they are delimited by space.


Arnie Rowland wrote:
Quote:
Are you sure that you are not referring to 'fixed width' fields?

--
Arnie Rowland, Ph.D.
Westwood Consulting, Inc

Most good judgment comes from experience.
Most experience comes from bad judgment.
- Anonymous

You can't help someone get up a hill without getting a little closer to the
top yourself.
- H. Norman Schwarzkopf


"jesbuddy07" <jesbuddy07 (AT) gmail (DOT) com> wrote in message
news:1165431841.876553.93600 (AT) 16g2000cwy (DOT) googlegroups.com...
i've been looking on this subject in this group with no luck.

i've been trying to import a text file which has multiple space
delimited column to a SQL server 2000.

i can't seem to find any answer on this subject. i tried typing space
on the delimiter field, but i get
"error source: microsoft data transformation services flat file rowset
provider

error description: invalid delimited data: text qualifier must be
followed by a column delimiter(except the last column).

context: error calling openrowset on the provider"

could anyone help?



Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: importing space delimited text file - 12-06-2006 , 05:00 PM



Hello jesbuddy07,


What does your file look like I have a file that looks like

A B C D

I typed a space as the column delimiters and it worked.


Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

Quote:
i've been looking on this subject in this group with no luck.

i've been trying to import a text file which has multiple space
delimited column to a SQL server 2000.

i can't seem to find any answer on this subject. i tried typing space
on the delimiter field, but i get
"error source: microsoft data transformation services flat file rowset
provider
error description: invalid delimited data: text qualifier must be
followed by a column delimiter(except the last column).

context: error calling openrowset on the provider"

could anyone help?




Reply With Quote
  #5  
Old   
jesbuddy07
 
Posts: n/a

Default Re: importing space delimited text file - 12-07-2006 , 10:15 AM



i'm trying to parse a log file
66.249.65.80 - - [04/Dec/2006:00:00:03 -0500] "GET
/cdm4/document.php?CISOROOT=/LSTACivWar&CISOPTR=1975&CISOSHOW=1973&REC=20
HTTP/1.1" 200 35843

i thought it would work if i have a double quote(") as a text
qualifier, but it wouldn't. that's how i get the error i mentioned
above, but after removing the text qualifier, it works just well.

thank you!!

Allan Mitchell wrote:
Quote:
Hello jesbuddy07,


What does your file look like I have a file that looks like

A B C D

I typed a space as the column delimiters and it worked.


Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

i've been looking on this subject in this group with no luck.

i've been trying to import a text file which has multiple space
delimited column to a SQL server 2000.

i can't seem to find any answer on this subject. i tried typing space
on the delimiter field, but i get
"error source: microsoft data transformation services flat file rowset
provider
error description: invalid delimited data: text qualifier must be
followed by a column delimiter(except the last column).

context: error calling openrowset on the provider"

could anyone help?



Reply With Quote
  #6  
Old   
jesbuddy07
 
Posts: n/a

Default Re: importing space delimited text file - 12-07-2006 , 11:05 AM



i'm trying to parse a log file
IP.IP.IP.IP - - [04/Dec/2006:00:00:03 -0500] "GET
/yyy/document.php?YYY=/LSTACivWar&VVV=1975&VVV=1973&REC=20
HTTP/1.1" 200 35843

i thought it would work if i have a double quote(") as a text
qualifier, but it wouldn't. that's how i get the error i mentioned
above, but after removing the text qualifier, it works just well.


thank you!!



Allan Mitchell wrote:
Quote:
Hello jesbuddy07,


What does your file look like I have a file that looks like

A B C D

I typed a space as the column delimiters and it worked.


Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

i've been looking on this subject in this group with no luck.

i've been trying to import a text file which has multiple space
delimited column to a SQL server 2000.

i can't seem to find any answer on this subject. i tried typing space
on the delimiter field, but i get
"error source: microsoft data transformation services flat file rowset
provider
error description: invalid delimited data: text qualifier must be
followed by a column delimiter(except the last column).

context: error calling openrowset on the provider"

could anyone help?



Reply With Quote
  #7  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: importing space delimited text file - 12-08-2006 , 05:23 PM



Hello jesbuddy07,


That's all one line right?

I have just created a Source adapter which based on " being the text qualifier
and space being the column delimiter gets me 7 columns


Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com

Quote:
i'm trying to parse a log file
IP.IP.IP.IP - - [04/Dec/2006:00:00:03 -0500] "GET
/yyy/document.php?YYY=/LSTACivWar&VVV=1975&VVV=1973&REC=20
HTTP/1.1" 200 35843
i thought it would work if i have a double quote(") as a text
qualifier, but it wouldn't. that's how i get the error i mentioned
above, but after removing the text qualifier, it works just well.

thank you!!

Allan Mitchell wrote:

Hello jesbuddy07,

What does your file look like I have a file that looks like

A B C D

I typed a space as the column delimiters and it worked.

Regards

Allan Mitchell
Konesans Ltd
T +44 7966 476 572
F +44 2071 008 479
http://www.konesans.com
i've been looking on this subject in this group with no luck.

i've been trying to import a text file which has multiple space
delimited column to a SQL server 2000.

i can't seem to find any answer on this subject. i tried typing
space
on the delimiter field, but i get
"error source: microsoft data transformation services flat file
rowset
provider
error description: invalid delimited data: text qualifier must be
followed by a column delimiter(except the last column).
context: error calling openrowset on the provider"

could anyone help?




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.