PC Review


Reply
Thread Tools Rate Thread

ConnectionString for comma-delimited file

 
 
FireStarter
Guest
Posts: n/a
 
      16th Nov 2005
Is there a way to connect through an OleDBConnection to a
comma-delimited file? Then I could read records through a DataReader.
I was thinking it could be done through the ExtendedProperties, but I
cannot find the right value for it (I would probably need to specify
field and row delimiters).


Thanks.
 
Reply With Quote
 
 
 
 
Jerry H.
Guest
Posts: n/a
 
      16th Nov 2005
You could try this:

http://www.developerfusion.co.uk/show/961/

It uses the MS Jet

 
Reply With Quote
 
samnissim@gmail.com
Guest
Posts: n/a
 
      16th Nov 2005
Unless you have a special reason for using OleDbConnection, create a
data source in ODBC using the Microsoft Text Driver. Then use
OdbcConnection instead of OleDbConnection.

FireStarter wrote:
> Is there a way to connect through an OleDBConnection to a
> comma-delimited file? Then I could read records through a DataReader.
> I was thinking it could be done through the ExtendedProperties, but I
> cannot find the right value for it (I would probably need to specify
> field and row delimiters).
>
>
> Thanks.


 
Reply With Quote
 
FireStarter
Guest
Posts: n/a
 
      16th Nov 2005
Thank you, after a couple of changes to bring it to C# syntax, this
worked perfectly.


Jerry H. wrote:
> You could try this:
>
> http://www.developerfusion.co.uk/show/961/
>
> It uses the MS Jet
>

 
Reply With Quote
 
FireStarter
Guest
Posts: n/a
 
      16th Nov 2005
Thank you for the idea. I went with OleDB because I wanted the solution
to be portable on other comps w/o having to add ODBC sources. It would
have worked, though.


(E-Mail Removed) wrote:
> Unless you have a special reason for using OleDbConnection, create a
> data source in ODBC using the Microsoft Text Driver. Then use
> OdbcConnection instead of OleDbConnection.
>
> FireStarter wrote:
>
>>Is there a way to connect through an OleDBConnection to a
>>comma-delimited file? Then I could read records through a DataReader.
>>I was thinking it could be done through the ExtendedProperties, but I
>>cannot find the right value for it (I would probably need to specify
>>field and row delimiters).
>>
>>
>>Thanks.

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
comma delimited file ?? Bridget Microsoft Word Document Management 0 6th Mar 2009 07:41 PM
Comma Delimited file \(Joseph Microsoft Excel Discussion 1 15th Mar 2006 09:15 PM
delimited, but Non-Comma Delimited file, for input. Ross.prillaman@HCAhealthcare.com Microsoft Access External Data 1 15th Aug 2005 05:55 PM
Comma-delimited file =?Utf-8?B?V0Q=?= Microsoft Access VBA Modules 3 19th Jan 2005 09:39 PM
Re: Comma Delimited File (csv) Andy B Microsoft Excel Misc 2 6th May 2004 03:47 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:47 AM.