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

Problem generating Flat File Connection Manager usign c#

$
0
0

Hi, the following code should create a connection which is bound to a text file, with a row delim of  CRLF and a column delim of "|"

//add flat file connection manager

            ConnectionManager _conMgrSource;

            _conMgrSource = Mipk.Connections.Add("FlatFile");
            _conMgrSource.ConnectionString = @"C:\Users\Admin\Documents\Data\Transfer\TestFile.txt";
            _conMgrSource.Name = "SSIS Connection Manager for Files";
            _conMgrSource.Description = "My Flat File connection";
            _conMgrSource.Properties["RowDelimiter"].SetValue(_conMgrSource, "{CR}{LF}");

Can anyone advise as to why, when the package is created, the flat file manager has a pipe "|" delimiter for both columns and rows ?

Any help greatly appreciated

David


Viewing all articles
Browse latest Browse all 24688

Trending Articles