dbTalk Databases Forums  

record number in data pump task

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss record number in data pump task in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RayAll
 
Posts: n/a

Default record number in data pump task - 03-05-2005 , 04:10 PM






I'm transfering a CSV file into a Table .

In Table I have a field called record number which I'd like to insert the
record number of the equivalent record in the CSV file.How can I simulate
it?

Thanks



Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: record number in data pump task - 03-06-2005 , 03:27 AM






Ray

You have a CSV file and when inserting to SQL Server you want to have an
incremental integer value added to "Record Number"?

You can either have your destination table have an Identitiy property
attribute or you could use an incrementing Global Variable in an Active
Script transformation.


"RayAll" <RayAll (AT) microsft (DOT) com> wrote


Quote:
I'm transfering a CSV file into a Table .

In Table I have a field called record number which I'd like to insert the
record number of the equivalent record in the CSV file.How can I simulate
it?

Thanks


Reply With Quote
  #3  
Old   
RayAll
 
Posts: n/a

Default Re: record number in data pump task - 03-06-2005 , 01:54 PM



Allan,

I used the second idea and it's now set up.Thanks,

The first idea dsoen't work for me because the line number should be reset
to zero for each student_id.I mean each student id could have multiple lines
which I have handle myself.

Thanks man.
"Allan Mitchell" <allan (AT) no-spam (DOT) sqldts.com> wrote

Quote:
Ray

You have a CSV file and when inserting to SQL Server you want to have an
incremental integer value added to "Record Number"?

You can either have your destination table have an Identitiy property
attribute or you could use an incrementing Global Variable in an Active
Script transformation.


"RayAll" <RayAll (AT) microsft (DOT) com> wrote


I'm transfering a CSV file into a Table .

In Table I have a field called record number which I'd like to insert the
record number of the equivalent record in the CSV file.How can I simulate
it?

Thanks




Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.