FIX: Creating Publication Fails if Table Has Long Column Name

Article translations Article translations
Article ID: 248624 - View products that this article applies to.
This article was previously published under Q248624
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 56747 (SQLBUG_70)
Expand all | Collapse all

On This Page

SYMPTOMS

When creating a publication for replication, the publication creation process may fail with the following errors:
Server: Msg 50007, Level 16, State 1, Line 0
Line 12: Incorrect syntax near '='.

Server: Msg 50007, Level 16, State 1, Line 0
xp_execresultset: unable to execute result set

Server: Msg 208, Level 16, State 11, Line 1
Invalid object name 'dbo.sp_MSsync_upd_t1_1'.

CAUSE

This may occur if both of the following conditions are true:
  • One of the columns included in the publication has a name that is longer than 40 characters.

    -and-
  • You are attempting to create a transactional publication with the Allow Immediate-Updating Subscribers option.
To work around this problem, either reduce the length of the name of the column that is longer than 40 characters or create the publication without immediate-updating subscribers.

WORKAROUND

To work around this problem, either reduce the length of the name of the column that is longer than 40 characters or create the publication without immediate-updating subscribers.

STATUS

Microsoft has confirmed this to be a problem in SQL Server 7.0. This problem has been corrected in U.S. Service Pack 2 for Microsoft SQL Server 7.0. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
254561 INF: How to Obtain Service Pack 2 for Microsoft SQL Server 7.0 and Microsoft Data Engine (MSDE) 1.0
For more information, contact your primary support provider.

MORE INFORMATION

Steps to Reproduce the Problem

  1. Use the following statement to create a table that has a column with a name greater than 40 characters long:
    CREATE TABLE [dbo].[t1] (
     [this_will_fail_because_the_column_length_is_greater_than_forty] [int] NULL ,
     [j] [int] NOT NULL primary key,
     [msrepl_synctran_ts] [timestamp] NOT NULL 
    )
  2. Try to create a Transactional publication and allow immediate updating subscribers.

Properties

Article ID: 248624 - Last Review: October 22, 2013 - Revision: 2.1
APPLIES TO
  • Microsoft SQL Server 7.0 Standard Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix KB248624

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com