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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T23:59:16+00:00 2026-06-06T23:59:16+00:00

I have altered a table luAffinity by adding an additional column AOTProcessRealTime to it.

  • 0

I have altered a table “luAffinity” by adding an additional column “AOTProcessRealTime” to it. I have added a default constraint to the column “AOTProcessRealTime”. Below is the query that I have fired:

ALTER TABLE luAffinity ADD AOTProcessRealTime BIT NOT NULL CONSTRAINT DF_luAffinity_ProcessRealTime DEFAULT 0

Now I wanted to delete the column AOTProcessRealTime. For this, I have to delete the default constraint first. So I wrote the following query to delete the constraint:

ALTER TABLE luAffinity
DROP CONSTRAINT DF_luAffinity_ProcessRealTime

On running the above query, I am gettin an error:

DF_luAffinity_ProcessRealTime is not a constraint. Could not drop constraint.

However, the constraint has been successfully created but I am not able to delete it. I just wanted to delete the column AOTProcessRealTime. But I am not able to delete it. Am I doing something wrong? Any help will be appreciated

  • 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-06-06T23:59:17+00:00Added an answer on June 6, 2026 at 11:59 pm

    For SQL Server, your syntax should work. Perhaps there is a subtle typo in the name of the constraint? Use

    SELECT *
     from sys.default_constraints
     where parent_object_id = object_id('luAffinity')
    

    to check how it is currently set.

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

Sidebar

Related Questions

I have a form/table that is dynamically altered via JS by adding/removing rows (form
We have a MySQL table that was altered with ALTER TABLE t COMMENT 'foo'
I have a table T that has a column A. A started with a
I'm in the process of migrating some databases. I have this table that has
I have a table with a Unique Index that I need to load 800,000
I'm using altered sample code from PhotoScroller within my app. I have a table
I have slightly altered the architecture of our application, and IWindsorContainer is no longer
I have a PHP search script which I've altered slightly and works well for
have 2 questions : A computer with 32-bit address uses 2-level page table (9
I'm new to hibernate. I have a transaction that fails with a HibernateException, yet

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.