473,385 Members | 1,766 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Export to csv having issue with import to SQL(Remedy)

Thanks for taking the time to read this note.

I have a Access inventory collection tool that I have automated to
build and Export to a CSV file. In the database I have several fields
that are large text fields for comments. When I'm collecting data I
have set the <Enter> button to move to next line instead of the
default.

We are trying to import this CSV data file in to a Remedy SQL server
using the Remedy Import tool. This import fails if the user in the
Collection tool uses the <enter> button to format the data. It looks
like it is adding a <cr><lf> to the row of data and then moves to the
next line of information.

Is there an easy solution to the issue? .. other than not letting the
user format the data?

N. Graves
Nov 13 '05 #1
4 5248
If your Remedy Import chokes up on Cr-Lf, then you will need to prevent it
being there or remove the ones that are there. Because, if you configure for
Enter to go to the next line within the Text Box, you will be entering the
"NewLine" which is a combination of "Carriage Return" and "Line Feed".

The Replace function may be a handy one for this circumstance; if you are
using an earlier version of Access than 2000, you can likely find a
user-coded Replace function with a search of the archives at
http://groups.google.com.

Larry Linson
Microsoft Access MVP
"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:3l********************************@4ax.com...
Thanks for taking the time to read this note.

I have a Access inventory collection tool that I have automated to
build and Export to a CSV file. In the database I have several fields
that are large text fields for comments. When I'm collecting data I
have set the <Enter> button to move to next line instead of the
default.

We are trying to import this CSV data file in to a Remedy SQL server
using the Remedy Import tool. This import fails if the user in the
Collection tool uses the <enter> button to format the data. It looks
like it is adding a <cr><lf> to the row of data and then moves to the
next line of information.

Is there an easy solution to the issue? .. other than not letting the
user format the data?

N. Graves

Nov 13 '05 #2
On Aug 04 2004, 07:58 pm, N. Graves <ng*****@REMOVEyahoo.com> wrote in
news:3l********************************@4ax.com:
I have a Access inventory collection tool that I have automated to
build and Export to a CSV file. In the database I have several fields
that are large text fields for comments. When I'm collecting data I
have set the <Enter> button to move to next line instead of the
default.

We are trying to import this CSV data file in to a Remedy SQL server
using the Remedy Import tool. This import fails if the user in the
Collection tool uses the <enter> button to format the data. It looks
like it is adding a <cr><lf> to the row of data and then moves to the
next line of information.

Is there an easy solution to the issue? .. other than not letting the
user format the data?


TextExport class from http://www.users.cloud9.net/~dfurman/code.htm will
export your text to a delimited file, optionally replacing CRLFs with some
other string (let's say a space, or possibly standalone LF or CR). This
will avoid the import problems, but of course may reformat the text in an
undesired way.

You may replace CRLFs with some token string during export, then once the
data is imported, replace the token string with CRLFs.

--
remove a 9 to reply by email
Nov 13 '05 #3
In my situation this may be overkill... but thank you very much for
your input and I will keep this note for future reference!!!

Thanks

N. Graves

On Thu, 05 Aug 2004 11:48:46 -0000, Dimitri Furman
<df*****@cloud99.net> wrote:
On Aug 04 2004, 07:58 pm, N. Graves <ng*****@REMOVEyahoo.com> wrote in
news:3l********************************@4ax.com :
I have a Access inventory collection tool that I have automated to
build and Export to a CSV file. In the database I have several fields
that are large text fields for comments. When I'm collecting data I
have set the <Enter> button to move to next line instead of the
default.

We are trying to import this CSV data file in to a Remedy SQL server
using the Remedy Import tool. This import fails if the user in the
Collection tool uses the <enter> button to format the data. It looks
like it is adding a <cr><lf> to the row of data and then moves to the
next line of information.

Is there an easy solution to the issue? .. other than not letting the
user format the data?


TextExport class from http://www.users.cloud9.net/~dfurman/code.htm will
export your text to a delimited file, optionally replacing CRLFs with some
other string (let's say a space, or possibly standalone LF or CR). This
will avoid the import problems, but of course may reformat the text in an
undesired way.

You may replace CRLFs with some token string during export, then once the
data is imported, replace the token string with CRLFs.


Nov 13 '05 #4
With the help of the iif Perfect was reached... thanks for your input.

N. Graves
On Thu, 05 Aug 2004 02:32:33 GMT, "Larry Linson"
<bo*****@localhost.not> wrote:
If your Remedy Import chokes up on Cr-Lf, then you will need to prevent it
being there or remove the ones that are there. Because, if you configure for
Enter to go to the next line within the Text Box, you will be entering the
"NewLine" which is a combination of "Carriage Return" and "Line Feed".

The Replace function may be a handy one for this circumstance; if you are
using an earlier version of Access than 2000, you can likely find a
user-coded Replace function with a search of the archives at
http://groups.google.com.

Larry Linson
Microsoft Access MVP
"N. Graves" <ng*****@REMOVEyahoo.com> wrote in message
news:3l********************************@4ax.com.. .
Thanks for taking the time to read this note.

I have a Access inventory collection tool that I have automated to
build and Export to a CSV file. In the database I have several fields
that are large text fields for comments. When I'm collecting data I
have set the <Enter> button to move to next line instead of the
default.

We are trying to import this CSV data file in to a Remedy SQL server
using the Remedy Import tool. This import fails if the user in the
Collection tool uses the <enter> button to format the data. It looks
like it is adding a <cr><lf> to the row of data and then moves to the
next line of information.

Is there an easy solution to the issue? .. other than not letting the
user format the data?

N. Graves


Nov 13 '05 #5

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

Similar topics

0
by: JShurmatz | last post by:
If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web...
2
by: Fritz Bosch | last post by:
Hi experts Is is possible to import/manipulate a module such that I can supply its __dict__? I want to supply my own dict subclass object to be filled by the import, e.g. a class like: >>>...
0
by: WangKhar | last post by:
just curious as to quite what This means: (taken from the Server License Eula at http://www.microsoft.com/sql/howtobuy/servercal.asp) 14 LIMITED WARRANTY. Microsoft warrants that the Product...
4
by: MD | last post by:
I am trying to create a dynamic SQL statement to create a view. I have a stored procedure, which based on the parameters passed calls different stored procedures. Each of this sub stored procedure...
1
by: Tim Jones | last post by:
Hey all, I am trying to try get a crytal report running properly. A "Hello World" report that does not add criteria to the record selection formula of the report (either in the development tool,...
9
by: Jim | last post by:
Group, I have a Web application sitting on a staging server that is using SQL Server 2000 as its data store, and I can run the application flawlessly. Now, when I copy the project to my...
4
by: Takeadoe | last post by:
Dear NG - I've got a bunch of SQL statements (Insert Into "Access Table Name") generated from another software program. They look like this: Pasting these lines into the SQL view as they are...
0
by: Pool | last post by:
Team: One of project uses IBM REMEDY database. It has a field "Closure time". we were told that the time in this field is in "EPOCH" format. I have the following issues with this field. 1) But if...
1
by: Pool | last post by:
My project uses REMEDY Database (idbm db2). We were able to connect to the database using the driver provided to us. But if we try to execute a SQL with relational operators the .NET code fails, i...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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
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...

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.