473,503 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

override Registry Text File Format setting for driver (CSVDelimite

In the Registry at

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Jet \ 4.0 \ Engines \ Text

the default key for Text Format is:

"Format" = "CSVDelimited"

I can use the following OleDB connection string with an OleDB dataAdapter to
read a comma delimited text file when "Format" = "CSVDelimited"

conOle.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\1A\;Extended Properties=""Text;HDR=yes;FMT=Delimited"""

But if the text file is tab delimited - my connection string reads the
entire row into one field per row (no column delimiting). If I change the
Registry setting to

"Format" = "TabDelimited"

then I can read the tab delimited text file with an OleDB dataAdapter
correctly. But I also want to be able to read a pipe | delimited text file
using an OleDB dataAdapter. I tried setting "Format" = "Delimited" but got
an error message in my app that said the Registry had an invalid key. I
tried "," for the comma delimited file instead of CSVDelimited , but got the
same "Invalid Registry Key..." error.

I was following the documentation at

http://msdn.microsoft.com/en-us/library/bb177651.aspx

for initializing the Text Data source driver which includes "Delimited" as
one of the keys that can be used. But that did not work.

Is there a generic setting I can place in the Registry so that I can use the
Delimeter of my choice? Or is there a way to override the Registry setting
from my application? If there is not - then is there a way (some key) I
could use a semicolon ; or pipe | as a delimiter for the OleDB DataAdapter?

Any information appreciated.

Thanks,
Rich

Aug 20 '08 #1
1 9981
OK. I figured out how to use a delimiter of my choice as follows:

Format = Delimited(,)

or

Format = Delimited(|)

or

Format = Delimited(;)
....

But I still have to modify the Registry for these settings. I can perform
these modifications from the app of course. But is there a way to override
the Registry values so that I don't have to modify the registry settings?
"Rich" wrote:
In the Registry at

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Jet \ 4.0 \ Engines \ Text

the default key for Text Format is:

"Format" = "CSVDelimited"

I can use the following OleDB connection string with an OleDB dataAdapter to
read a comma delimited text file when "Format" = "CSVDelimited"

conOle.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\1A\;Extended Properties=""Text;HDR=yes;FMT=Delimited"""

But if the text file is tab delimited - my connection string reads the
entire row into one field per row (no column delimiting). If I change the
Registry setting to

"Format" = "TabDelimited"

then I can read the tab delimited text file with an OleDB dataAdapter
correctly. But I also want to be able to read a pipe | delimited text file
using an OleDB dataAdapter. I tried setting "Format" = "Delimited" but got
an error message in my app that said the Registry had an invalid key. I
tried "," for the comma delimited file instead of CSVDelimited , but got the
same "Invalid Registry Key..." error.

I was following the documentation at

http://msdn.microsoft.com/en-us/library/bb177651.aspx

for initializing the Text Data source driver which includes "Delimited" as
one of the keys that can be used. But that did not work.

Is there a generic setting I can place in the Registry so that I can use the
Delimeter of my choice? Or is there a way to override the Registry setting
from my application? If there is not - then is there a way (some key) I
could use a semicolon ; or pipe | as a delimiter for the OleDB DataAdapter?

Any information appreciated.

Thanks,
Rich
Aug 20 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
8363
by: Omer Ahmad | last post by:
Hi All, I've been working with python for about 6 months now, and have been very impressed with the size and scope of the libraries. I have, however, run into a bit of a problem. I...
0
4832
by: atse | last post by:
Hi, I am still stick on the text file being imported to database. Can anybody help? I have just done the csv format files. And then I work on text and DAT formats, but I have problem to import...
17
1580
by: Sam | last post by:
Hi all If I only want to store screen location and size of my application in Windows Registry, which of the keys should I store this info? A sample code is greatly appreciated. Thank you ...
0
755
by: bazzer | last post by:
hey, i am using visual basic.net 2003 and have an ASP.NET webform application thats accessing a microsoft access 2003 database. i kept getting the following error when i tried to run it: ERROR ...
0
12002
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
6
1670
by: JOSII | last post by:
Getting a string of boolean value into and out of the registry is no problem. Here's the problem: Although you can place an object into the registry and retreive it, I need to place an ArrayList...
4
5665
by: =?Utf-8?B?U3RldmVU?= | last post by:
I am trying to write an application using VS 2005 that accesses an Access database. Unfortunately, VS 2005 doesn't seem to understand the new Access 2007 file extention. Can VS 2005 use the new...
2
1625
by: fniles | last post by:
I am using VS 2005. When building a "Setup and Deployment" project, how can I copy and merge registry settings to the user's machine ? The registry setting is in HKEY_CURRENT_USER/Software/VB and...
12
5619
by: =?Utf-8?B?YXVsZGg=?= | last post by:
i current have a way to read both local and remote machines registry keys and create a textual view (.txt output). i now looking for ways to do export of local and remote mahcine registry keys...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.