SSIS를 통해 SQL Server에 플랫 파일로드. SQL Server 대상 테이블에 DATE
데이터 형식이있는 몇 개의 열이 있습니다. SSIS의 연결 관리자에서 정의 할 해당 데이터 형식은 무엇입니까? 나는 연결 관리자에서 사용할 수있는 모든 DATE
데이터 유형을 시도했지만 그것은 다음과 같이 변환 오류가 발생합니다Flatfile 데이터 형식 SSIS에서 SQL Server 로의 문제
[OLE DB Destination [199]] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005. An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Invalid character value for cast specification".
[OLE DB Destination [199]] Error: There was an error with OLE DB Destination.Inputs[OLE DB Destination Input].Columns[Created on] on OLE DB Destination.Inputs[OLE DB Destination Input]. The column status returned was: "The value could not be converted because of a potential loss of data.".
[OLE DB Destination [199]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "OLE DB Destination.Inputs[OLE DB Destination Input]" failed because error code 0xC0209077 occurred, and the error row disposition on "OLE DB Destination.Inputs[OLE DB Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
플랫 파일 소스 날짜 형식은 DD-MM-YYYY
형식으로되어 있습니다. 에서 복사
날짜 소리 데이터 형식을 선택하십시오. 플랫 파일 원본에서 고급 속성으로 이동하십시오. 각 날짜 열에 대해 FastParse 옵션을 true로 변경하십시오. 그것은 당신이 데이터를로드 할 수 있어야합니다. 데이터가 채워지지 않은 인스턴스 나 나쁜 날짜를 사용하는 인스턴스를 찾지 않는 * 경우. 해당 값으로 질문 업데이트 및/또는 ping 가능 – billinkc
[FastParse] (http://stackoverflow.com/questions/8186291/import-string-date-in-derived-column/8197667#8197667) 참조 예 – billinkc
@billinkc 그에 따라 설정을 변경했습니다. 데이터 흐름의 유효성은 검사되지만 SQL 대상 테이블의 날짜 열은 모든 행에 대해 null입니다. 데이터 흐름은 변환 실패시 열을 무시하고 Null 값을로드합니다. 플랫 파일 소스에 날짜 [DT_DATE]를 사용했으며 대상 테이블의 열은 [Date] – AllPigsREqual