/ / Importowanie danych Excel do SQL Server i konwersja do DateTime - sql-server, excel, datetime

Importowanie danych Excel do SQL Server i konwersja do DateTime - sql-server, excel, datetime

chłopaki,

Mam dane w datetime w pliku Excel,odpowiednio sformatowany do konwersji datetime serwera SQL (rrrr-mm-dd gg: mm: ss: 000). Niestety, gdy próbuję zaimportować dane do pola SQL typu DateTime, otrzymuję następujące komunikaty o błędach:

Error 0xc02020c5: Data Flow Task 1: Data conversion failed while converting column "Datetime" (27) to column "Datetime" (60).  The conversion returned status value 2 and status text "The value could not be converted because of a potential loss of data."

Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "Data Conversion 0 - 0.Outputs[Data Conversion Output].Columns[Datetime]" failed because error code 0xC020907F occurred, and the error row disposition on "Data Conversion 0 - 0.Outputs[Data Conversion Output].Columns[Datetime]" 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.

Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "Data Conversion 0 - 0" (52) failed with error code 0xC0209029 while processing input "Data Conversion Input" (53). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.

Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.

Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED.  The PrimeOutput method on Source - Sheet2$ returned error code 0xC02020C4.  The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.  There may be error messages posted before this with more information about the failure.

Masz pojęcie o tym, co robię źle? W szczególności muszę zaimportować dane z programu Excel, a nie z pliku CSV, ponieważ w pliku źródłowym znajduje się tekst w języku hebrajskim, którego SQL Server nie rozpoznaje z żadnym z kodowań dostępnych w imporcie CSV.

`

Odpowiedzi:

0 dla odpowiedzi № 1

Ostatecznie udało się całkowicie usunąć milisekundy.