?
Solved

checksum in sql (ms sql server query)

Posted on 2014-01-27
3
Medium Priority
?
996 Views
Last Modified: 2014-02-02
I want to use checksum in sql query for improving performance of stored procedure. Before implementing checksum, i want to know what are the disadvantages of checksum in sql query  (sql 2008/2012).

Could you please tell me the disadvantages/drawback of checksum in sql?
0
Comment
Question by:sqldba2013
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Expert Comment

by:magarity
ID: 39812498
What are you talking about using a checksum to do? There isn't anywhere near enough information in your question.
0
 
LVL 42

Accepted Solution

by:
pcelba earned 1000 total points
ID: 39812594
It is easy. Just add the computed column based on a CHECKSUM and test the SP speed...

CHECKSUM is useful if you need to compare long data record change etc. More info: http://technet.microsoft.com/en-us/library/ms189788(v=sql.110).aspx

You should also look at BINARY_CHECKSUM and CHECKSUM_AGG.

Drawbacks: some data types are not suitable for CHECKSUM.
0
 

Author Closing Comment

by:sqldba2013
ID: 39828821
--
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Lotus Notes has been used since a very long time as an e-mail client and is very popular because of it's unmatched security. In this article we are going to learn about  RRV Bucket corruption and understand various methods to Fix "RRV Bucket Corrupt…
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question