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 7648947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T10:50:34+00:00 2026-05-31T10:50:34+00:00

I need to migrate data (varbinary(max)) from one table to another. When executing an

  • 0

I need to migrate data (varbinary(max)) from one table to another. When executing an update to do this, I get the following error

Msg 511, Level 16, State 1, Line 18
Cannot create a row of size 8078 which is greater than the allowable
 maximum row size of 8060.

This is the update I’ve used to copy from table DocumentPublication to DocumentVersion

UPDATE docver SET RecapRTF = CAST(RTFPublication as VARBINARY(MAX)) FROM
DocumentVersion docver INNER JOIN DocumentPublication docpub 
ON docpub.IdDocumentVersion = DOCVER.id

or without cast

UPDATE docver SET RecapRTF = RTFPublication FROM
DocumentVersion docver INNER JOIN DocumentPublication docpub  
ON docpub.IdDocumentVersion = DOCVER.id

By executing the update row by row I’ve isolated the row that gives the error. The strange part is that the data in this field is only 3950 bytes and other rows with less or more (e.g. 2000 bytes or 20MB) work fine.

I’ve then recreated the destination table under a different name and now it can copy the varbinary field!?!?

SQL Server version is 2008 R2 with lastest updates and database with compatibility 100 (sql server 2008). I’ve run DBCC CHECKDB and DBCC CHECKALLOC and the did not find errors.

Any clues to what could be wrong here?

  • 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-31T10:50:36+00:00Added an answer on May 31, 2026 at 10:50 am

    Your docver table probably has a dropped or altered column still consuming space.

    See Why should I rebuild a table after dropping or adding a column?

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

Sidebar

Related Questions

I need to migrate some data from access to sql. access has one table:
I want to migrate data from one database to another database in Microsoft SQL
I need to migrate data from a Plone-based portal to Liferay. Has anyone some
I need to create a quick and dirty solution to migrate data from database
I need to migrate data in a large flat table located in SQL Server
I get this error when I run rake db:migrate *db/migrate//004_add_data_to_measurement_type_and_measurement_unit.rb:3: invalid multibyte char (US-ASCII)
I'm importing data from SQL Server to mysql. Currently I need to migrate a
I wish to migrate some data from a single table into these new THREE
I need to migrate a large project from StarTeam 5 to Subversion, and I'd
I need to migrate Access databases to SQL Server 2005. Since this needs to

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.