<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; 2005 Locking Hints and Examples</title>
	<atom:link href="http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Thu, 09 Feb 2012 10:40:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: sudhi</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-203550</link>
		<dc:creator><![CDATA[sudhi]]></dc:creator>
		<pubDate>Thu, 24 Nov 2011 09:04:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-203550</guid>
		<description><![CDATA[hello sir, 
Please help me. in my programme i m using sql 2008. when it run it multi user environment.if one person save a big invoice then my programme in all other systems are hanged untill he save the invoice. I know it s by db table lock. how to overcome it .pls reply. thanks in advance.]]></description>
		<content:encoded><![CDATA[<p>hello sir,<br />
Please help me. in my programme i m using sql 2008. when it run it multi user environment.if one person save a big invoice then my programme in all other systems are hanged untill he save the invoice. I know it s by db table lock. how to overcome it .pls reply. thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hari</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-197772</link>
		<dc:creator><![CDATA[Hari]]></dc:creator>
		<pubDate>Thu, 17 Nov 2011 15:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-197772</guid>
		<description><![CDATA[Hi Pinal,

I am facing performance issue why processing the data. Here is what my data processing scenario. we process the data on daily basis (charges/Transactions)

1. We load the data into Temporary Tables (New) and Create the Transaction keys for the new records.
2. Then we merger the new data with Production Data (below logic we follow)
      A.  Insert the complete Production Data into TableB
      B.  Create Indexs on TableB
      C.  Delete old data if exists based on MDXkey with New Table
      D.  Insert New Data into TableB
      E. Switch the Productiontable - TableA ,TableB to Production Table
      F. Drop Table new, TableA

Questions:

1. Because of the above process we are facing lot issues in server level (Database server is getting crashed frequently) the reason for this is Lot of IO reads and taking lot of resources Is there any alternate way you can suggest me to process data

Thank you in Advance 

Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I am facing performance issue why processing the data. Here is what my data processing scenario. we process the data on daily basis (charges/Transactions)</p>
<p>1. We load the data into Temporary Tables (New) and Create the Transaction keys for the new records.<br />
2. Then we merger the new data with Production Data (below logic we follow)<br />
      A.  Insert the complete Production Data into TableB<br />
      B.  Create Indexs on TableB<br />
      C.  Delete old data if exists based on MDXkey with New Table<br />
      D.  Insert New Data into TableB<br />
      E. Switch the Productiontable &#8211; TableA ,TableB to Production Table<br />
      F. Drop Table new, TableA</p>
<p>Questions:</p>
<p>1. Because of the above process we are facing lot issues in server level (Database server is getting crashed frequently) the reason for this is Lot of IO reads and taking lot of resources Is there any alternate way you can suggest me to process data</p>
<p>Thank you in Advance </p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-178357</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 11:38:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-178357</guid>
		<description><![CDATA[1 For data accuracy you need to lock the table until data are inserted
2 It is not possible to create duplicate table]]></description>
		<content:encoded><![CDATA[<p>1 For data accuracy you need to lock the table until data are inserted<br />
2 It is not possible to create duplicate table</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shankar</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-178255</link>
		<dc:creator><![CDATA[Shankar]]></dc:creator>
		<pubDate>Thu, 13 Oct 2011 05:52:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-178255</guid>
		<description><![CDATA[Hi Pinal,

We are having a problems with insert statements which locks the table while inserting the records and we cannot perform any other operations on that table at a time.. I have some questions regarding SQL Server 2000.

1&gt; if one person inserting some records into the table that table will be locked and another person cannot access records from that table.. or another person trying to perform update or selecting records from that particular table. its not happening and he has to wait. Wat to do ? please help me with this..

2&gt; is there any possibility that we can create duplicate table so that we can perform different operations like insert on one table and select or update on duplicated table...]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>We are having a problems with insert statements which locks the table while inserting the records and we cannot perform any other operations on that table at a time.. I have some questions regarding SQL Server 2000.</p>
<p>1&gt; if one person inserting some records into the table that table will be locked and another person cannot access records from that table.. or another person trying to perform update or selecting records from that particular table. its not happening and he has to wait. Wat to do ? please help me with this..</p>
<p>2&gt; is there any possibility that we can create duplicate table so that we can perform different operations like insert on one table and select or update on duplicated table&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shashikiran V</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-169222</link>
		<dc:creator><![CDATA[Shashikiran V]]></dc:creator>
		<pubDate>Sun, 18 Sep 2011 08:36:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-169222</guid>
		<description><![CDATA[Hi Pinal,

I am facing one problem in one our application. Here we have table where we insert 400+ records every time. At the same time if any user performs a select operation on this, we are getting time out error and occurrence of deadlock. 

When we select the records with nolock condition we are getting the records which are not locked. But this is not the actual solution to it.

This table consists of 500000 records altogether. Kindly suggest us a way to overcome of it.

Thanks.]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,</p>
<p>I am facing one problem in one our application. Here we have table where we insert 400+ records every time. At the same time if any user performs a select operation on this, we are getting time out error and occurrence of deadlock. </p>
<p>When we select the records with nolock condition we are getting the records which are not locked. But this is not the actual solution to it.</p>
<p>This table consists of 500000 records altogether. Kindly suggest us a way to overcome of it.</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ron</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-159505</link>
		<dc:creator><![CDATA[Ron]]></dc:creator>
		<pubDate>Fri, 19 Aug 2011 13:20:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-159505</guid>
		<description><![CDATA[I have a database where I need to process 100+ queries on the same table per second. The query takes approx 20 milliseconds to run normally, but as I start to bring up more threads and do more simultaneous queries it starts to slow down to 200-2000 milliseconds. The more simultaneous queries I use the slower they all become. Is there any way to avoid this? I am using NOLOCK in the query, but was hoping you may have some tips to help me with this one.]]></description>
		<content:encoded><![CDATA[<p>I have a database where I need to process 100+ queries on the same table per second. The query takes approx 20 milliseconds to run normally, but as I start to bring up more threads and do more simultaneous queries it starts to slow down to 200-2000 milliseconds. The more simultaneous queries I use the slower they all become. Is there any way to avoid this? I am using NOLOCK in the query, but was hoping you may have some tips to help me with this one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sreekanth</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-154061</link>
		<dc:creator><![CDATA[sreekanth]]></dc:creator>
		<pubDate>Fri, 05 Aug 2011 09:29:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-154061</guid>
		<description><![CDATA[how to unlock d locked database]]></description>
		<content:encoded><![CDATA[<p>how to unlock d locked database</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sanket</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-148649</link>
		<dc:creator><![CDATA[Sanket]]></dc:creator>
		<pubDate>Sat, 16 Jul 2011 04:42:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-148649</guid>
		<description><![CDATA[Hi pinal, u r doing good job, This blog helps me lot.]]></description>
		<content:encoded><![CDATA[<p>Hi pinal, u r doing good job, This blog helps me lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 16 of 31 Journey to SQLAuthority</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-148618</link>
		<dc:creator><![CDATA[SQL SERVER – Interview Questions and Answers – Frequently Asked Questions – Day 16 of 31 Journey to SQLAuthority]]></dc:creator>
		<pubDate>Sat, 16 Jul 2011 01:31:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-148618</guid>
		<description><![CDATA[[...] Using the NOLOCK query optimizer hint is generally considered a good practice in order to improve concurrency on a busy system. When the NOLOCK hint is included in a SELECT statement, no locks are taken on data when data is read. The result is a Dirty Read, which means that another process could be updating the data at the exact time you are reading it. There are no guarantees that your query will retrieve the most recent data. The advantage to performance is that your reading of data will not block updates from taking place, and updates will not block your reading of data. SELECT statements take Shared (Read) locks. This means that multiple SELECT statements are allowed simultaneous access, but other processes are blocked from modifying the data. The updates will queue until all the reads have completed, and reads requested after the update will wait for the updates to complete. The result to your system is delay (blocking). (Read more here) [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Using the NOLOCK query optimizer hint is generally considered a good practice in order to improve concurrency on a busy system. When the NOLOCK hint is included in a SELECT statement, no locks are taken on data when data is read. The result is a Dirty Read, which means that another process could be updating the data at the exact time you are reading it. There are no guarantees that your query will retrieve the most recent data. The advantage to performance is that your reading of data will not block updates from taking place, and updates will not block your reading of data. SELECT statements take Shared (Read) locks. This means that multiple SELECT statements are allowed simultaneous access, but other processes are blocked from modifying the data. The updates will queue until all the reads have completed, and reads requested after the update will wait for the updates to complete. The result to your system is delay (blocking). (Read more here) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naimish</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-147393</link>
		<dc:creator><![CDATA[naimish]]></dc:creator>
		<pubDate>Mon, 11 Jul 2011 10:10:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-147393</guid>
		<description><![CDATA[hello sir,

i have two linked server.

i am trying to insert from one to another using sp but in all this process
one table is locked.

not even access the data from local server also can&#039;t drop table
this table have one trigger afterinsert  and using this trigger i maintain a
log that table also locked so trigger can&#039;t drop or altered

so to release this what i have to do 
help me...]]></description>
		<content:encoded><![CDATA[<p>hello sir,</p>
<p>i have two linked server.</p>
<p>i am trying to insert from one to another using sp but in all this process<br />
one table is locked.</p>
<p>not even access the data from local server also can&#8217;t drop table<br />
this table have one trigger afterinsert  and using this trigger i maintain a<br />
log that table also locked so trigger can&#8217;t drop or altered</p>
<p>so to release this what i have to do<br />
help me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rashmi</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-146799</link>
		<dc:creator><![CDATA[Rashmi]]></dc:creator>
		<pubDate>Fri, 08 Jul 2011 04:43:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-146799</guid>
		<description><![CDATA[Hello sir,

Please tell me why we need nolock and working of rowlock.]]></description>
		<content:encoded><![CDATA[<p>Hello sir,</p>
<p>Please tell me why we need nolock and working of rowlock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Narayana</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-146331</link>
		<dc:creator><![CDATA[Narayana]]></dc:creator>
		<pubDate>Wed, 06 Jul 2011 06:56:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-146331</guid>
		<description><![CDATA[Hello Sir,

Please can you help me on executing the ssis package  from
trigger,as it&#039;s going to an  infinity loop .]]></description>
		<content:encoded><![CDATA[<p>Hello Sir,</p>
<p>Please can you help me on executing the ssis package  from<br />
trigger,as it&#8217;s going to an  infinity loop .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Susendran</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-145428</link>
		<dc:creator><![CDATA[Susendran]]></dc:creator>
		<pubDate>Sun, 03 Jul 2011 02:54:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-145428</guid>
		<description><![CDATA[Hello sir,

I am susendran,i new to sql i want to lock my stored procedure and when i want   nedd to modify it please give me idea]]></description>
		<content:encoded><![CDATA[<p>Hello sir,</p>
<p>I am susendran,i new to sql i want to lock my stored procedure and when i want   nedd to modify it please give me idea</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: adamtuliper</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-144878</link>
		<dc:creator><![CDATA[adamtuliper]]></dc:creator>
		<pubDate>Thu, 30 Jun 2011 13:45:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-144878</guid>
		<description><![CDATA[I&#039;d recommend editing your text up top to remove that nolock is the default for SELECT or specify up top its the default only for read uncommitted. I know you mention this in your reply below this is the case, but since READ UNCOMMITTED is not a usual default this is quite misleading when you first read this post as witnessed by several replies in this thread]]></description>
		<content:encoded><![CDATA[<p>I&#8217;d recommend editing your text up top to remove that nolock is the default for SELECT or specify up top its the default only for read uncommitted. I know you mention this in your reply below this is the case, but since READ UNCOMMITTED is not a usual default this is quite misleading when you first read this post as witnessed by several replies in this thread</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nisha</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-136198</link>
		<dc:creator><![CDATA[nisha]]></dc:creator>
		<pubDate>Mon, 23 May 2011 11:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-136198</guid>
		<description><![CDATA[here i read a row 
select name  from emply where id=19
and nxt if i try to read d same row it should be locked..i shouldnt be able to read it...can u suggest me how to achieve this hibernate]]></description>
		<content:encoded><![CDATA[<p>here i read a row<br />
select name  from emply where id=19<br />
and nxt if i try to read d same row it should be locked..i shouldnt be able to read it&#8230;can u suggest me how to achieve this hibernate</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rejith</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-134993</link>
		<dc:creator><![CDATA[Rejith]]></dc:creator>
		<pubDate>Wed, 18 May 2011 13:10:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-134993</guid>
		<description><![CDATA[We have some deadlock issue while updating a set of tables in a single transaction.if multiple users are trying to update same table at same time, it gets locked. Could you please give a solution for this

Thanx in advance]]></description>
		<content:encoded><![CDATA[<p>We have some deadlock issue while updating a set of tables in a single transaction.if multiple users are trying to update same table at same time, it gets locked. Could you please give a solution for this</p>
<p>Thanx in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rohit Kumar Choudhary</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-130347</link>
		<dc:creator><![CDATA[Rohit Kumar Choudhary]]></dc:creator>
		<pubDate>Thu, 21 Apr 2011 11:14:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-130347</guid>
		<description><![CDATA[Hi Pinal,
            I want to know how one can view and remove locking on DBOs in SQLServer and also how to decide on which table to be removed off locking (if is deadlocked) without loosing data.

&quot;Thanks in advance P.Dave.&quot;]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
            I want to know how one can view and remove locking on DBOs in SQLServer and also how to decide on which table to be removed off locking (if is deadlocked) without loosing data.</p>
<p>&#8220;Thanks in advance P.Dave.&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aman</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-128527</link>
		<dc:creator><![CDATA[aman]]></dc:creator>
		<pubDate>Tue, 12 Apr 2011 21:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-128527</guid>
		<description><![CDATA[Hello,

We are migrating from sql server 2000 to sql server 2005. When running the advisory stats, the below error message was given for an particular SP.

In SQL Server 2005, with some exceptions, table hints are supported in the FROM clause of a query only when the hints are specified using the WITH keyword.

Below is the query in the SP, here an index has been specified to be used.

Select cw.FundID from BRCallPaymentWork cw (INDEX = NonIdx_FourKey_BrCallPayment) where cw.FundID = cp.FundID and cw.InvestorID = cp.InvestorID and cw.ParentID = cp.ParentID and cw.ChildID = cp.ChildID and cw.amountcalled = cp.amount

I believe in 2005 we need to use an hint , can u please help me how will this work?

Your help will be appreciated.

thanks,
aman]]></description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>We are migrating from sql server 2000 to sql server 2005. When running the advisory stats, the below error message was given for an particular SP.</p>
<p>In SQL Server 2005, with some exceptions, table hints are supported in the FROM clause of a query only when the hints are specified using the WITH keyword.</p>
<p>Below is the query in the SP, here an index has been specified to be used.</p>
<p>Select cw.FundID from BRCallPaymentWork cw (INDEX = NonIdx_FourKey_BrCallPayment) where cw.FundID = cp.FundID and cw.InvestorID = cp.InvestorID and cw.ParentID = cp.ParentID and cw.ChildID = cp.ChildID and cw.amountcalled = cp.amount</p>
<p>I believe in 2005 we need to use an hint , can u please help me how will this work?</p>
<p>Your help will be appreciated.</p>
<p>thanks,<br />
aman</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravinder Pal Singh</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115533</link>
		<dc:creator><![CDATA[Ravinder Pal Singh]]></dc:creator>
		<pubDate>Tue, 01 Feb 2011 13:14:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115533</guid>
		<description><![CDATA[select * from users (with rowlock) where userid=’141′]]></description>
		<content:encoded><![CDATA[<p>select * from users (with rowlock) where userid=’141′</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravinder Pal Singh</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115532</link>
		<dc:creator><![CDATA[Ravinder Pal Singh]]></dc:creator>
		<pubDate>Tue, 01 Feb 2011 13:13:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115532</guid>
		<description><![CDATA[It should be WITH(HoldLock)]]></description>
		<content:encoded><![CDATA[<p>It should be WITH(HoldLock)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravinder Pal Singh</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115531</link>
		<dc:creator><![CDATA[Ravinder Pal Singh]]></dc:creator>
		<pubDate>Tue, 01 Feb 2011 13:11:16 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115531</guid>
		<description><![CDATA[Hi Kapil,

The syntax is incorrect. Use WITH(HoldLock) rather than (WITH HoldLock).

Query will become:

select * from projects WITH (HOLDLOCK)where pj_id=1

Same is for (WITH ROWLOCK). Use WITH (ROWLOCK).

Query will become: 

Select * from users WITH (ROWLOCK) where userid=141]]></description>
		<content:encoded><![CDATA[<p>Hi Kapil,</p>
<p>The syntax is incorrect. Use WITH(HoldLock) rather than (WITH HoldLock).</p>
<p>Query will become:</p>
<p>select * from projects WITH (HOLDLOCK)where pj_id=1</p>
<p>Same is for (WITH ROWLOCK). Use WITH (ROWLOCK).</p>
<p>Query will become: </p>
<p>Select * from users WITH (ROWLOCK) where userid=141</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swapnil sawant</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115092</link>
		<dc:creator><![CDATA[swapnil sawant]]></dc:creator>
		<pubDate>Sat, 29 Jan 2011 05:22:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115092</guid>
		<description><![CDATA[hey pinal,
            thank u very much for such a great post........ it&#039;s fabulous.
    I need to ask u one question.

suppose if i am using rowlock in following manner

SELECT OrderID
FROM Orders WITH( holdlock , ROWLOCK)
WHERE OrderID =100

then can u please tell me ..... untill how much it will hold this lock . because as soon as i execute this query ; simultaneously i can select the same query from another page. that means it is not holding a lock ...


SO PLEASE ME HELP OUT....... 
PLEASE REPLY ME AS SOON AS POSSIBLE
THANKS IN ADVANCE]]></description>
		<content:encoded><![CDATA[<p>hey pinal,<br />
            thank u very much for such a great post&#8230;&#8230;.. it&#8217;s fabulous.<br />
    I need to ask u one question.</p>
<p>suppose if i am using rowlock in following manner</p>
<p>SELECT OrderID<br />
FROM Orders WITH( holdlock , ROWLOCK)<br />
WHERE OrderID =100</p>
<p>then can u please tell me &#8230;.. untill how much it will hold this lock . because as soon as i execute this query ; simultaneously i can select the same query from another page. that means it is not holding a lock &#8230;</p>
<p>SO PLEASE ME HELP OUT&#8230;&#8230;.<br />
PLEASE REPLY ME AS SOON AS POSSIBLE<br />
THANKS IN ADVANCE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swapnil</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115091</link>
		<dc:creator><![CDATA[swapnil]]></dc:creator>
		<pubDate>Sat, 29 Jan 2011 05:20:53 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-115091</guid>
		<description><![CDATA[hii pinal,
            thank u very much for such a great post........ it&#039;s fabulous.
    I need to ask u one question.

suppose if i am using rowlock in following manner

SELECT OrderID
FROM Orders WITH( holdlock , ROWLOCK)
WHERE OrderID =100

then can u please tell me ..... untill how much it will hold this lock . because as soon as i execute this query ; simultaneously i can select the same query from another page. that means it is not holding a lock ...

SO PLEASE ME HELP OUT....... 
THANKS IN ADVANCE]]></description>
		<content:encoded><![CDATA[<p>hii pinal,<br />
            thank u very much for such a great post&#8230;&#8230;.. it&#8217;s fabulous.<br />
    I need to ask u one question.</p>
<p>suppose if i am using rowlock in following manner</p>
<p>SELECT OrderID<br />
FROM Orders WITH( holdlock , ROWLOCK)<br />
WHERE OrderID =100</p>
<p>then can u please tell me &#8230;.. untill how much it will hold this lock . because as soon as i execute this query ; simultaneously i can select the same query from another page. that means it is not holding a lock &#8230;</p>
<p>SO PLEASE ME HELP OUT&#8230;&#8230;.<br />
THANKS IN ADVANCE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rafay</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-114656</link>
		<dc:creator><![CDATA[Rafay]]></dc:creator>
		<pubDate>Thu, 27 Jan 2011 11:09:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-114656</guid>
		<description><![CDATA[hi!!
i want to ask that how create a lock on login.
i as an administrator created a user and now i want to lock my login section in sql server 2000 can you tell me how can i do it.

REPLY!! ASAP...]]></description>
		<content:encoded><![CDATA[<p>hi!!<br />
i want to ask that how create a lock on login.<br />
i as an administrator created a user and now i want to lock my login section in sql server 2000 can you tell me how can i do it.</p>
<p>REPLY!! ASAP&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-110978</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Fri, 14 Jan 2011 12:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/04/27/sql-server-2005-locking-hints-and-examples/#comment-110978</guid>
		<description><![CDATA[It should be WITH (ROWLOCK)]]></description>
		<content:encoded><![CDATA[<p>It should be WITH (ROWLOCK)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

