Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Genarate Text file from store procedure with start and end position of each field.

$
0
0

Hi,

I want to genarate the text file from store procedure, my store procedure will retrun 30 columns, i want to get this output in fixec txt format, I am facing problem mention the each field start position and end position of each field in the output file.

For example:

Field 1: FirstName  start position 1 to 20

Field 2: LastName  start position 21 to 30

Note: If firstname will have only 13 chars in the sql output, then i need to fill the space then only last name extactly start with position 21. This conditions will applicable for all the fields.

I tried to achive this Sql keyword "Replicate", But i am not sure replicate will correct way for this solution. Again i tried to get in SSIS . i am got failure. Please suggest the solution for this.

Regards,

Marimuthu.K


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>