Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase ««12

Whats the easiest way to read the first 10 characters of a flat file Expand / Collapse
Posted Thursday, May 9, 2013 1:14 AM



Group: General Forum Members
Last Login: Today @ 10:17 AM
Points: 5,317, Visits: 12,351
That's a neat technique, thanks for posting.

Quite a common requirement seems to be reading the first n characters, or the first row, of a text file to determine its type/layout before directing to the appropriate dataflow - I reckon you're well on the way to cracking that with this.

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

When you ask a question (and please do ask a question: "My T-SQL does not work" just doesn't cut it), please provide enough information for us to understand its context.

It is better to keep your mouth shut and appear stupid than to open it and remove all doubt. (Mark Twain)
Post #1450905
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse