flat-file

SSIS Package Cancels instantly on Debug

一个人想着一个人 提交于 2019-12-01 22:12:03
I have a rather simple SSIS package that I've used many times to import a tab delimited file into a single table in a database. I attached a new source file to the package and attempted to run the package. The package starts A cmd prompt appears briefly, then disappears [?!] The process then exits, on the Flat File Source component. [??!] Output displays as follows: SSIS package "C:\Users...\Conversion\LoadHistory.dtsx" starting. Information: 0x4004300A at Load Data to Legacy Database - Test, SSIS.Pipeline: Validation phase is beginning. Information: 0x4004300A at Load Data to Legacy Database

How to import a flat file without changing regional settings on the deployment server?

浪子不回头ぞ 提交于 2019-12-01 17:15:09
I am trying to read a text file in SSIS (2005/2008). I created a connection to the file and placed flat file source, and it works fine in preview but when I try to run I get error saying: [Derived Column [91848]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR So I have identified that there are couple of columns with decimal numbers which use period as delimiters. But since I work in Scandinavian environment, the servers expect comma as delimiters. What works is manually changing delimiter from comma to period in regional settings on the windows server but this is not an adequate

How to load mixed record type fixed width file? And also file contain two header

可紊 提交于 2019-12-01 17:00:28
I got a task to load a strangely formatted text file. The file contains unwanted data too. It contains two headers back to back and data for each header is specified on alternate lines. Header rows start after ------ . I need to read both the header along with its corresponding data and dump it into some Excel/table destination using. Let me know how to solve this using any transformation in SSIS or maybe with a script. Don't know how to use script task for this. Right now I am reading the file in one column and using a derived column manually trying to split it using substring function. But

How to load mixed record type fixed width file? And also file contain two header

◇◆丶佛笑我妖孽 提交于 2019-12-01 16:13:54
问题 I got a task to load a strangely formatted text file. The file contains unwanted data too. It contains two headers back to back and data for each header is specified on alternate lines. Header rows start after ------ . I need to read both the header along with its corresponding data and dump it into some Excel/table destination using. Let me know how to solve this using any transformation in SSIS or maybe with a script. Don't know how to use script task for this. Right now I am reading the

find and replace values in a flat-file using PHP

独自空忆成欢 提交于 2019-12-01 09:07:59
I'd think there was a question on this already, but I can't find one. Maybe the solution is too easy... Anyway, I have a flat-file and want to let the user change the values based on a name. I've already sorted out creating new name+value-pairs using the fopen('a') mode, using jQuery to send the AJAX call with newValue and newName . But say the content looks like this: host|http:www.stackoverflow.com folder|/questions/ folder2|/users/ And now I want to change the folder value. So I'll send in folder as oldName and /tags/ as newValue . What's the best way to overwrite the value? The order in

Flat file destination columns data types validation

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 09:05:29
A source database field of type INT is read through an OLE DB Source. It is eventually written to a Flat File Destination. The destination Flat File Connection Manager > Advanced page reports it as a four-byte signed integer [DT_I4] . This data type made me think it indicated binary. Clearly, it does not. I was surprised that it was not the more generic numeric [DT_NUMERIC] . I changed this type setting to single-byte signed integer [DT_I1] . I expected this to fail, but it did not. The process produced the same result, even though the value of the field was always > 127. Why did this not fail

find and replace values in a flat-file using PHP

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 07:39:40
问题 I'd think there was a question on this already, but I can't find one. Maybe the solution is too easy... Anyway, I have a flat-file and want to let the user change the values based on a name. I've already sorted out creating new name+value-pairs using the fopen('a') mode, using jQuery to send the AJAX call with newValue and newName . But say the content looks like this: host|http:www.stackoverflow.com folder|/questions/ folder2|/users/ And now I want to change the folder value. So I'll send in

How do I get SSIS Data Flow to put '0.00' in a flat file?

一曲冷凌霜 提交于 2019-12-01 03:37:56
I have an SSIS package with a Data Flow that takes an ADO.NET data source (just a small table), executes a select * query, and outputs the query results to a flat file (I've also tried just pulling the whole table and not using a SQL select). The problem is that the data source pulls a column that is a Money datatype, and if the value is not zero, it comes into the text flat file just fine (like '123.45'), but when the value is zero, it shows up in the destination flat file as '.00'. I need to know how to get the leading zero back into the flat file. I've tried various datatypes for the output

How do I get SSIS Data Flow to put '0.00' in a flat file?

感情迁移 提交于 2019-12-01 00:09:45
问题 I have an SSIS package with a Data Flow that takes an ADO.NET data source (just a small table), executes a select * query, and outputs the query results to a flat file (I've also tried just pulling the whole table and not using a SQL select). The problem is that the data source pulls a column that is a Money datatype, and if the value is not zero, it comes into the text flat file just fine (like '123.45'), but when the value is zero, it shows up in the destination flat file as '.00'. I need

Can NHibernate persist to flat files instead of database?

余生颓废 提交于 2019-11-30 19:37:11
Here is a curiousity question. I have an application that must support both flat files and the database as a place to persist data. I was thinking maybe using a .csv or tab-delimited set of files as input ... Is it possible to use NHibernate to write to do both persistance tasks? Try using the Jet engine (see this ) Dialect and other nhibernate settings should be the ones for Microsoft Access . No not to the best of my knowledge. I have the same requirement and have ended up just using flat XML files and hand rolling all the CRUD. Just today I did happen to notice this File System Database on