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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:28:55+00:00 2026-06-10T11:28:55+00:00

I am using SQL SERVER 2008 R2, I have two same DB, ABC (with

  • 0

I am using SQL SERVER 2008 R2,
I have two same DB,

  1. ABC (with only structure like schemas, tables but no data in the
    table)
  2. ABC1 (with schemas, tables and data in the tables)

How can I compare #1 & #2 for their Schema and Tables, do we have any software for it or we can do it in the SSMS itself.

  • 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-10T11:28:57+00:00Added an answer on June 10, 2026 at 11:28 am
    You can write a sproc which will do this for you.
    
    1.Lets get all the tables from ABC into a table variable or temp table.
    2.Loop through the temp or table variable and get each table at a time.
    3.Get all the column names,datatypes etc for this table and similarly get the same details for the same table from ABC1 database.
    4.Also create one final result table where you just update the status against each table as match or nomatch
    5.Repeat this for all the tables in the table variable.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using SQL Server 2008. Let's say I have two hypothetical tables like below:
I'm using SQL Server 2008. I have two tables like this: OrderItems OrderItemID InventoryItemID
Using SQL Server 2008 (R2). I have two tables in different databases (with same
I am using SQL Server 2008, and I have two tables Table1 contains 3.5
I have two tables with the exact same schema in SQL Server 2008 Standard
I am using SQL Server 2008 R2. I have two tables, ShoppingList and ShoppingListFood
I am using SQL Server 2008 R2. I have created two different databases Master
I have configured Service Broker communication between two SQL Server 2008 instances using Windows
I am using SQL Server 2008. I have a query that pulls two random
I'm using SQL Server 2008. I have a database table that looks like this

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.