Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7571609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T15:42:52+00:00 2026-05-30T15:42:52+00:00

When using SSIS to load data from a source table, we have a OLE

  • 0

When using SSIS to load data from a source table, we have a OLE DB Destination that uses a Data Access Mode of “Table or View – fast load” (which uses a BULK INSERT to do the work). When we try to execute the task, we get a very strange error message:

Error: 4804, Severity: 17, State: 1 While reading current row from
host, a premature end-of-message was encountered–an incoming data
stream was interrupted when the server expected to see more data. The
host program may have terminated. Ensure that you are using a
supported client application programming interface (API).

The error seems to indicate that there is some kind of corruption in the incoming data, but we have already scrubbed the source data and everything looks ok. If we change the Data Access Mode to “Table or view” (which uses a cursor to do the INSERTs), every row is added without any error.

Table definition:

CREATE TABLE [dbo].[CUST](
    [CUST_FIRST_NM] [varchar](50) NOT NULL,
    [CUST_MIDL_INIT] [char](1) NULL,
    [CUST_LAST_NM] [varchar](50) NOT NULL,
    [CUST_EMAIL_ADDR] [varchar](100) NULL,
    [CUST_TELE_PHONE_NBR] [int] NULL,
    [CUST_TELE_CNTRY_CD] [smallint] NULL,
    [CUST_TELE_AREA_CD] [smallint] NULL,
    [LAST_UPD_DTTM] [datetime] NOT NULL,
    [CUST_ID] [bigint] IDENTITY(1,1) NOT NULL,
    [CUST_CD] AS ('PUB'+right(CONVERT([varchar](max),CONVERT([varbinary],[CUST_ID],0),(1)),(7))),
 CONSTRAINT [XPKCUST] PRIMARY KEY CLUSTERED 
(
    [CUST_ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

Any idea what might be causing this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T15:42:54+00:00Added an answer on May 30, 2026 at 3:42 pm

    As it turns out, I was able to answer my own question, so I am posting it here on StackOverflow to benefit the community. 🙂

    The problem was the computed column CUST_CD. After a lot of researching, it seems that the BULK INSERT does not like complex computed types (see https://stackoverflow.com/questions/4031909/using-sql-server-spatial-types-in-ssis-data-load). The solution is to removed the computed column and just make it a varchar(20) NULL. Then I created a new Execute SQL Task that updates any NULL rows with the computed value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem using the SSIS. I try to import data from database
I work on an product that imports data from a mainframe using SSIS via
I have flat file. I am loading data from flat file to source table
I am using SSIS to copy data from a table in Oracle to a
Using SSIS 2008 R2, I have an OLE DB source with around 30 fields.
I am currently using SSIS to read the data from a table, modify a
I'm using SSIS to import data from Excel sheets into SQL Server 2005, the
We're about to make data transformation from one system to another using SSIS. We
I am using SSIS to do data transformation from excel to OLEDB SQL. I
We're essentially bulk loading data from one database to another, using SSIS. My co-worker

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.