Solved

checksum in sql (ms sql server query)

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

726 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