SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Flat File Destination populated with bad characters/blank data fields


Flat File Destination populated with bad characters/blank data fields

Author
Message
rburns6
rburns6
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 57
The Data Flow task is simple enough. It takes the results from a stored procedure, and pumps the data to a flat file using pipe's as delimeters for the data columns. For some reason, and only in select occurences, the file will get popoulated with bad/blank data.

For example, the top portion of the file has the data set as;

7916728||-2||TRS| |30000|TRU_B|4


and this will continue throughout until it gets to something like this;

|-|-||||||0

When the stored proc is run from Query Analyzer there are no issues, and I have been unable to replicate the behavior when running the package with the same data set.

Another piece of information which might be helpful, is that there are 2 of these packages that run as scheduled jobs, that pull similar data elements - not exactly the same - that are scheduled at the same time. If it was locking on the data wouldn't we expect to see this everytime since the schedule remains the same?

I feel like it is in the writing to the file that is causing the issue and not the SQL itself since it runs fine without error outside of the packages.

Any help would be greatly appreciated.
Phil Parkin
Phil Parkin
SSCoach
SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)SSCoach (18K reputation)

Group: General Forum Members
Points: 18539 Visits: 20441
Try adding a Data Viewer to confirm that the dodgy data is not being returned by the SP.


Help us to help you. For better, quicker and more-focused answers to your questions, consider following the advice in this link.

If the answer to your question can be found with a brief Google search, please perform the search yourself, rather than expecting one of the SSC members to do it for you.

Please surround any code or links you post with the appropriate IFCode formatting tags. It helps readability a lot.
rburns6
rburns6
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 57
Thanks for the response. I will add the data viewer to the package and see if that captures the data in question ...
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search