Saturday 20 July 2019

MSSQL - Fix Error - - Unable to modify table. Cannot insert the value NULL into column 'Address', table 'Company.dbo.Tmp_TestTable'; column does not allow nulls. INSERT fails. The statement has been terminated.


Watch this example on YouTube



'TestTable' table
- Unable to modify table. 
Cannot insert the value NULL into column 'IsActive', table 'Company.dbo.Tmp_TestTable'; column does not allow nulls. INSERT fails.
The statement has been terminated.


to fix it do it manually
Update TestTable Set IsActive = 1 where  IsActive is null

Alter Table TestTable
Alter Column IsActive bit Not Null

2 comments:

  1. Your Affiliate Money Making Machine is ready -

    Plus, getting it set up is as simple as 1...2...3!

    Follow the steps below to make money...

    STEP 1. Input into the system what affiliate products the system will advertise
    STEP 2. Add push button traffic (it ONLY takes 2 minutes)
    STEP 3. Watch the system explode your list and sell your affiliate products all for you!

    Do you want to start making profits?

    The solution is right here

    ReplyDelete
  2. I read your entire essay, and I really enjoyed it. The best blog I could find. Interested in reading more posts on your blog. A project can be ruined by poor audio. I would want to offer this most recent piece on Auto Clickers For Mac In 2023. The best auto clicker for a Mac is discussed in this article. You may find this to be very useful information.

    ReplyDelete