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

  • Home
  • SEARCH
  • 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 496693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:42:37+00:00 2026-05-13T05:42:37+00:00

I have a database running under Sql server 2005 with merge replication. I want

  • 0

I have a database running under Sql server 2005 with merge replication. I want to change some of the FK columns to be ‘not null’ as they should always have a value. SQL server won’t let me do that though, this is what it says:

  • Unable to modify table. It is invalid to drop the default constraint
    on the rowguid column that is used by
    merge replication. The schema change
    failed during execution of an internal
    replication procedure. For corrective
    action, see the other error messages
    that accompany this error message. The
    transaction ended in the trigger. The
    batch has been aborted.

I am not trying to change the constraints on the rowguid column at all, only on another column that is acting as a FK. Other columns I want to set to be not null because the record doesn’t make any sense without that information (i.e. on a customer, the customer name).

Questions:
Is there a way to update columns to be ‘not null’ without turning off replication then turning it back on again?
Is this even the best way to do this – should I be using a constraint instead?

  • 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-13T05:42:37+00:00Added an answer on May 13, 2026 at 5:42 am

    Apparently SSMS makes changes to tables by dropping them and recreating them. So just needed to make the changes using T-SQL statement.

    ALTER TABLE dbo.MyTable ALTER COLUMN MyColumn nvarchar(50) NOT NULL 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database running on MS SQL Server 2005 and an ASP.NET 3.5
Assume that you have a running SQL Server Express instance named (local)\SQLEXPRESS. Its database
I have a SQL Server 2005 database that I'm trying to access as a
We have a database server running SQL Server 2008 and we connect using Windows
I have designed database tables (normalised, on an MS SQL server) and created a
I have installed SQL Server 2005 three times now on the same box. I
I have a Microsoft SQL server 2005 and I tried to enable Broker for
I have a couple of stored procedures on SQL Server 2005 that I've noticed
Running Excel 2010 with PowerPivot 10.50.1747.0, accessing SQL Server 2005 SP2. I am modifying
I have a really big database (running on PostgreSQL) containing a lot of tables

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.