473,397 Members | 2,084 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,397 software developers and data experts.

how to load a .csv file to a temporary table in sql 2000

hi,
i have a vb.net application.
Here is what i have to do.
i have 2 .csv files with almost similar data
i have to lad each .csv in 1 temp table and then compare those 2 temp
tables.
any ideas ?
Thanks

Mar 13 '06 #1
4 1532

"with a question" <Pr***********@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
i have a vb.net application.
Here is what i have to do.
i have 2 .csv files with almost similar data
i have to lad each .csv in 1 temp table and then compare those 2 temp
tables.


What would make the two different? What would not? What if there is an extra
space at the end of one field? What do you want to happen if they are
different?

Mar 13 '06 #2
with a question wrote:
hi,
i have a vb.net application.
Here is what i have to do.
i have 2 .csv files with almost similar data
i have to lad each .csv in 1 temp table and then compare those 2 temp
tables.
any ideas ?
Thanks

Why do you need to read them into a table to compare them? Why not just
compare the two file directly?

Open each file
Read them in byte by byte or line by line and compare the two

Chris
Mar 13 '06 #3
Why do you need to put them into SQL tables? Using a DataTable should be
sufficient if you just need to check the values?
"with a question" <Pr***********@gmail.com> wrote in message
news:11*********************@j33g2000cwa.googlegro ups.com...
hi,
i have a vb.net application.
Here is what i have to do.
i have 2 .csv files with almost similar data
i have to lad each .csv in 1 temp table and then compare those 2 temp
tables.
any ideas ?
Thanks

Mar 14 '06 #4

Hi,
i have to lad each .csv in 1 temp table and then compare those 2 temp
tables.
any ideas ?


try 'csvdiff' (http://csvdiff.sourceforge.net/)
it's a perl script, but i think that's what you're looking for

Yours

Mumpitz

--
mumpitz
------------------------------------------------------------------------
Posted via http://www.mcse.ms
------------------------------------------------------------------------
View this thread: http://www.mcse.ms/message2203022.html

May 15 '06 #5

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

Similar topics

0
by: ano1optimist | last post by:
I've created a DTS package which creates a SQL server 2000 database table and then imports data from a .TXT file on the FTP server. My problem is this: I am allowed to select the source file...
2
by: Bob | last post by:
Everybody, I've been doing a lot of on-line research and cannot find any reference to the exact problem I'm having. Let me preface this question with the fact that I'm coming from an Oracle...
11
by: randi_clausen | last post by:
Using SQL against a DB2 table the 'with' key word is used to dynamically create a temporary table with an SQL statement that is retained for the duration of that SQL statement. What is the...
1
by: Uthuras | last post by:
Greetings, Machine : Pentium IV Os Windows 2000 server Product : DB2 UDB Release : 7.2 We are fail to load the following data file format into db2 database table that has long varchar...
5
by: N | last post by:
Hi, I got an error during load on a couple of the tables. And it seems to be complaining that I'm running out of tempspace (possibly during index rebuild). Below is the load command and error....
3
by: vijay_dwi | last post by:
Hi all, I have a fixedwidth .DAT file and a DB2 table, I have to create a flat file by pulling data from both file and DB2 table. I tried using IMPORT/LOAD utilities to load to a global...
3
by: db2udbgirl | last post by:
Env: DB2 UDB 8.2, AIX 5.3 While trying to load data (73 Million rows, Medium size table uses 4K tablespace) into a table using cursor it fails with "SQL0964C The transaction log for the database...
2
by: Jeff | last post by:
Hey asp.net 2.0 My asp.net 2.0 project has got a assembly load problem: Some of my web.config settings: <membership defaultProvider="AH_MembershipProvider" userIsOnlineTimeWindow="15">
3
by: Nils | last post by:
I use SQLDMO.Bulkcopy in an VB6 (have to) program to load data from a plain text file into a SQL Server 2000. One of the target columns is NOT NULL but it happens that I receive a missing value...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
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,...
0
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...

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.