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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:04:19+00:00 2026-05-30T22:04:19+00:00

On several other databases I’ve come across, one can turn off the consistency check

  • 0

On several other databases I’ve come across, one can turn off the consistency check when restoring a (scripted) dump of the database. The idea is that when you have dumped the script from a database, you can restore it safely, without doing consistency checks, both to speed things up, and to not be hindered by the order which you stash in the different tables, foreign keys, views etc.

(On Microsoft SQL (2005) you have the ‘generate and publish scripts’.)

Is there such a switch for MS SQL? And obviously, how do you turn it on again – and how can you potentially force a global consistency check afterwards?

PS: I do not necessarily need this feature to execute scripts which the server has produced..!

  • 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-30T22:04:21+00:00Added an answer on May 30, 2026 at 10:04 pm

    I dont think it can be donne, but Im not sure.

    What can be donne is manually disable the constraint with the code:

    ALTER TABLE table_name 
    NOCHECK CONSTRAINT constraint_name
    

    and enable it using the same syntax, just change NOCHECK to CHECK

    If you really need it to the whole DB you can easly build something to loop through the tables and constraints and execute this code

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

Sidebar

Related Questions

I have several PHP files include()ing other files from several other directories. In one
I have a project that necessarily spans several databases. One database has tables: CREATE
I have a SQL Server with several databases. I want for one of these
We want to replicate data from one database to several others (on another server).
I found several other questions on SO regarding the JavaMail API and sending mail
I have found several other questions here on S.O. (and the web in general)
I've read several other questions about material in order to learn RoR. But my
I've looked at several other SGen-related questions on here and either their answers don't
Me and several other developers are currently cleaning up our legacy code base, mostly
When working on a project with several other people it's common to have several

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.