Re: Validate a CSV file
- From: "William \(Bill\) Vaughn" <billvaRemoveThis@xxxxxxxxxx>
- Date: Wed, 27 Jul 2005 14:58:39 -0700
I suggest using BCP to upload it to a work table and doing the INSERTs from
a SP into a clone of the target table (just schema). When the INSERT
completes, the data is validated and can safely be inserted into the working
table. Then all you have to worry about is the RI issues.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"J-T" <J-T@xxxxxxxxxx> wrote in message
news:uEyAI7ukFHA.3756@xxxxxxxxxxxxxxxxxxxxxxx
>I have a CSV file which contains comma seperated data that I need to
>validate against our database.I was thinking about loading that CSV file
>into a Typed-Dataset which has our database schema in it and then try to
>load the CSV file into that Typed-Dataset and automatically get all the
>errors and constarint violations.
>
> 1) Is it doable?
>
> 2) Because I need to check the foriegn keys as well,Can I loaded the data
> of those refferecing tables into my dataset as well?
>
> 3)If number 2 is doable ,how should I update my dataset if a key has been
> added to the existing refferncing tables?
>
>
> Thanks a lot for taking your time answering this post in advance.
>
> J-T
>
.
- Follow-Ups:
- Re: Validate a CSV file
- From: J-T
- Re: Validate a CSV file
- References:
- Validate a CSV file
- From: J-T
- Validate a CSV file
- Prev by Date: Re: Passing Optional Parameter to Stored Procedure in VS VB.net
- Next by Date: Re: Validate a CSV file
- Previous by thread: Validate a CSV file
- Next by thread: Re: Validate a CSV file
- Index(es):
Relevant Pages
|