I am trying to import data from excel into Sql Server using the import wizard. In the first steps, everything seems beautiful. The wizard can read the excel file and correctly identify the columns. But at the last stage, when the process is really running, it does not give the following errors:
Error 0xc020901c: data stream Task 1: an error occurred with the output of the AlternateName column (24) at the output of Excel Source Output (9). Return column: "The text has been truncated or one or more characters did not match on the target code page." (SQL Server Import and Export Wizard)
Error 0xc020902a: data flow Task 1: "AlternateName" output column (24) "failed because a truncation occurred, and the disposition on" output column "AlternateName" (24) truncation line indicates a truncation failure. A truncation error on the specified object for the specified component. (SQL Server Import and Export Wizard)
Error 0xc0047038: data stream Task 1: SSIS error code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on the Source - Sheet1 $ component (1) returned error code 0xC020902A. failure code when the pipeline engine is called PrimeOutput (). the failure code value is determined by the component, but the error is fatal and the pipeline has stopped executing. There may be error messages posted before that, with additional error information. (SQL Server Import and Export Wizard)
The AlternateName column has a maximum data length of 658 characters. The destination table has an AlternateName column defined as varchar (1000). So I was not sure why I was getting this error. But then I noticed it

I have a suspicion that this may cause a problem. But how to change the Source column defined as varchar 255?
shashi
source share