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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:11:59+00:00 2026-05-19T04:11:59+00:00

How can I perform this query on whatever way: delete from sys.tables where is_ms_shipped

  • 0

How can I perform this query on whatever way:

delete from sys.tables where is_ms_shipped = 0

What happened is, I executed a very large query and I forgot to put USE directive on top of it, now I got a zillion tables on my master db, and don’t want to delete them one by one.

UPDATE: It’s a brand new database, so I don’t have to care about any previous data, the final result I want to achieve is to reset the master db to factory shipping.

  • 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-19T04:11:59+00:00Added an answer on May 19, 2026 at 4:11 am

    Simplest and shortest way I did was this:

    How to Rebuild System Databases in SQL Server 2008

    The problem with all other answers here is that it doesn’t work, since there are related tables and it refuses to execute.

    This one, not only it works but actually is what I am looking for: “Reset to factory defaults” as stated in the question.
    Also this one will delete everything, not only tables.

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

Sidebar

Related Questions

In MySQL I can perform the query I pastebin here . This query results
In Oracle, is there an easy way to perform this in a single query,
How can I perform this MS SQL Query with Linq to SQL in C#
Let's say I want to perform this query: (SELECT a FROM t1 WHERE a=10
I can't deal with it. I'm experiencing big troubles with this very query: UPDATE
Why can't I do this, and how could I perform the same behavior in
I want to perform a search query from my rails app, which uses the
In Rails 3 I can perform query on associated models: EXAMPLE 1: model.associated_models.where(:attribute =>
I'm trying to perform a complex issue, I have a query structured like this:
I have this query: SELECT p.id, r.status, r.title FROM page AS p INNER JOIN

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.