﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Discuss Content Posted by Christoffer Hedgate / Article Discussions / Article Discussions by Author  / Dealing With Changing Data / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Fri, 24 May 2013 00:04:23 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Dealing With Changing Data</title><link>http://www.sqlservercentral.com/Forums/Topic18918-94-1.aspx</link><description>Disclaimer: I'm a newbie...Am I correct that if you merely add a ROWVERSION column to your table that SS will prevent overwriting an interim change, but will not communicate that the update failed? To my newbie ears, then, this sounds like the simplest approach possible, then, that would be effective.* add a ROWVERSION column to every table (which one could do automatically, I'm sure)* add a TRIGGER (AFTER) to every table to check @@ROWCOUNT for zero. If zero, notify the user that their update failed and why.In your example you use PRINT to report the failure. Is that just an example that will only work in Management Studio, or is that going to work in an app? If not, how does that typically get back to the user?Thanks,</description><pubDate>Wed, 25 Jun 2008 08:39:33 GMT</pubDate><dc:creator>billross</dc:creator></item><item><title>RE: Dealing With Changing Data</title><link>http://www.sqlservercentral.com/Forums/Topic18918-94-1.aspx</link><description>Thanks, maybe I'll get back to that part in another article then.--Chris Hedgate @ Extralives (http://www.extralives.com/)Contributor to Best of SQL Server Central 2002 (http://www.sqlservercentral.com/bestof/)Articles: http://www.sqlservercentral.com/columnists/chedgate/</description><pubDate>Sat, 20 Dec 2003 01:07:00 GMT</pubDate><dc:creator>Chris Hedgate</dc:creator></item><item><title>RE: Dealing With Changing Data</title><link>http://www.sqlservercentral.com/Forums/Topic18918-94-1.aspx</link><description>Good article.  Informative, especially for beginners who are starting to deal with this.One suggestion: In the second to last paragraph you talk "SQL Server's built-in functionality for optimistic concurrency,"  but don't give any examples of how to implement or use this functionality.  I'd like to know more about how to use this. </description><pubDate>Fri, 19 Dec 2003 11:29:00 GMT</pubDate><dc:creator>bigdmoore</dc:creator></item><item><title>RE: Dealing With Changing Data</title><link>http://www.sqlservercentral.com/Forums/Topic18918-94-1.aspx</link><description>I see that I have a slight error in the article text. The following part is not correct:&lt;BLOCKQUOTE id=quote&gt;&lt;font size=1 face="Verdana, Arial, Helvetica" id=quote&gt;quote:&lt;hr height=1 noshade id=quote&gt;This means that data is locked as soon as it is read and no other user is able to read that data until the locking user releases it.  The SQL Server way of doing this is of course to use Update Locks instead of Shared Locks when reading data.&lt;hr height=1 noshade id=quote&gt;&lt;/BLOCKQUOTE id=quote&gt;&lt;/font id=quote&gt;&lt;font face="Verdana, Arial, Helvetica" size=2 id=quote&gt; Instead, it shoud have been like this: This means that data is locked as soon as it is read and no other user is able to &lt;b&gt;change&lt;/b&gt; that data until the locking user releases it. The SQL Server way of doing this is of course to use Update Locks instead of Shared Locks when reading data.--Chris Hedgate @ Extralives (http://www.extralives.com/)Contributor to Best of SQL Server Central 2002 (http://www.sqlservercentral.com/bestof/)Articles: http://www.sqlservercentral.com/columnists/chedgate/</description><pubDate>Fri, 19 Dec 2003 04:55:00 GMT</pubDate><dc:creator>Chris Hedgate</dc:creator></item><item><title>Dealing With Changing Data</title><link>http://www.sqlservercentral.com/Forums/Topic18918-94-1.aspx</link><description>Comments posted to this topic are about the content posted at &lt;A HREF=http://www.sqlservercentral.com/columnists/chedgate/dealingwithchangingdata.asp&gt;http://www.sqlservercentral.com/columnists/chedgate/dealingwithchangingdata.asp&lt;/A&gt;</description><pubDate>Fri, 05 Dec 2003 00:00:00 GMT</pubDate><dc:creator>Chris Hedgate</dc:creator></item></channel></rss>