Solved

checksum in sql (ms sql server query)

Posted on 2014-01-27
3
919 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
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 41

Accepted Solution

by:
pcelba earned 250 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

This article describes how to use the timestamp of existing data in a database to allow Tableau to calculate the prior work day instead of relying on case statements or if statements to calculate the days of the week.
Read about achieving the basic levels of HRIS security in the workplace.
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

757 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now