dbTalk Databases Forums  

How to find the record # being processed

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


Discuss How to find the record # being processed in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
karenmiddleol@yahoo.com
 
Posts: n/a

Default How to find the record # being processed - 09-17-2005 , 07:02 AM






I am loading a text file and I want to know if there is system global
variable into which stores the current record # from the file being
processed.

If so please let me know method of finding the record #

Thanks
Karen


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

Default Re: How to find the record # being processed - 09-17-2005 , 07:36 AM






There is nothing you can get internally AFAIK that would tell you the
current row being loaded. How would expect to use that Row number?

Allan



"karenmiddleol (AT) yahoo (DOT) com" <karenmiddleol (AT) yahoo (DOT) com> wrote


Quote:
I am loading a text file and I want to know if there is system global
variable into which stores the current record # from the file being
processed.

If so please let me know method of finding the record #

Thanks
Karen


Reply With Quote
  #3  
Old   
karenmiddleol@yahoo.com
 
Posts: n/a

Default Re: How to find the record # being processed - 09-17-2005 , 08:14 AM



Hi Allan

How do I get the row number is it I need to maintain a global variable
for this.

Thanks
Karen


Reply With Quote
  #4  
Old   
karenmiddleol@yahoo.com
 
Posts: n/a

Default Re: How to find the record # being processed - 09-17-2005 , 08:21 AM



Hi Allan

How do I get the row number is it I need to maintain a global variable
for this.

Thanks
Karen


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

Default Re: How to find the record # being processed - 09-17-2005 , 08:35 AM



Sure you could maintain a GV but what do you want to do with that GV?

Do you intend to add an auto incrementing attribute to the destination?


Allan


"karenmiddleol (AT) yahoo (DOT) com" <karenmiddleol (AT) yahoo (DOT) com> wrote


Quote:
Hi Allan

How do I get the row number is it I need to maintain a global variable
for this.

Thanks
Karen


Reply With Quote
  #6  
Old   
karenmiddleol@yahoo.com
 
Posts: n/a

Default Re: How to find the record # being processed - 09-17-2005 , 10:03 AM



No all I need the record # is when the record # is a particular value I
want to do a specific processing.

Thanks
Karen


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

Default Re: How to find the record # being processed - 09-17-2005 , 10:15 AM



Then sure have a counter.

Wouldn't you be better looking for a feature of the data rather than a
counter though?

"karenmiddleol (AT) yahoo (DOT) com" <karenmiddleol (AT) yahoo (DOT) com> wrote


Quote:
No all I need the record # is when the record # is a particular value I
want to do a specific processing.

Thanks
Karen


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.