Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

SSIS Package

$
0
0
Hi to all. I was unsure which form to post to for this question so as the backend is SQL 2014 I opted for this one :)I created an ssis package to output a file which is then sent by FTP. This all worked fine when the flat file connection was set to 'Delimited'. I was then asked to change to 'Fixed Width'. This generates error below.[Flat File Destination [2]] Error: The column name for column "My Column" could not be written. The column name may be longer than the available column size.[SSIS.Pipeline] Error: Flat File Destination failed the pre-execute phase and returned error code 0xC0202095.The OLE DB Source is a simple query:[code]SELECT 'C2' AS [Company Code],LEFT(JobID,20) AS [Project Code],LEFT(JobDescription,30) AS [Project Description],'Job' AS [Project Type],'Y' AS Active,CONVERT(nvarchar(30),effectiveDate,103) AS [Start Date],'' AS [End Date], '' As [Revised End Date]FROM JOBSWHERE Jobs.SystemType = 'F'[/code]I am using Visual Studio 2013 Shell. I have spent a fair few hours on this issue now. I tried adding a 'Data Conversion' task but this did not have the desired effect. I am no closer to finding a resolution.Can any of you gurus help me on this one?Thanks,Phil.

Viewing all articles
Browse latest Browse all 3145

Trending Articles