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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:59:08+00:00 2026-06-05T23:59:08+00:00

I am modifying a sql server 2005 stored procedure slightly for performance, and I

  • 0

I am modifying a sql server 2005 stored procedure slightly for performance, and I would like to quickly make sure the old stored proc and the new one return the exact same results (the columns are the same, I want to make sure the rows are the same).

Is there a simple way to do this in sql server 2005?

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

    you can use the except construct to match between the two queries.

    select * from (select * from query1) as query1
    except
    select * from (select * from query2) as query2
    

    EDIT:

    Then reverse the query to find differences with query2 as the driver:

    select * from (select * from query2) as query2
    except
    select * from (select * from query1) as query1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Running Excel 2010 with PowerPivot 10.50.1747.0, accessing SQL Server 2005 SP2. I am modifying
My organization currently delivers a web application primarily based on a SQL Server 2005/2008
I've come across a problem with modifying XML within SQL Server that doesn't seem
In MS SQL Server Management Studio 2005: If you have the setting Tools|Options|Scripting|Include IF
I would like to know what would be the impact of modifying web.config file
When modifying data in a SQL Server database you can use either System.DBNull.Value or
I am attempting to convert a SQL stored procedure to LINQ to do some
Using SQL Server and T-SQL, how can I update ALL tables tables with a
Given that SQL Server does not allow modification of the logical INSERTED and DELETED
C# - Winforms - SQL Server i am building an application which displays some

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.