Use sp_who, sp_who2, sp_lock etc to determine what types of locks the connection which has modified
the data has on the table. Also, you still haven't provided us with the table structure and what
"Sniper" <kakopappa@hotmail.com> wrote in message
news:5923EEE1-890F-454C-B694-7E9279D605F3@microsoft.com...
>
> When I open the table from the Enterprise Manager it doesn't show the table
> data. or when I do a SELECT * FROM table it's waitting till the table lock to
> be released.
>
> thanks,
> Sniper
>
> "Tibor Karaszi" wrote:
>
>> Not directly. As I said, make sure that you support the WHERE clauses you use in the UPDATE with
>> proper indexes and you are most likely to end up with row locks. How did you determine that the
>> whole table is locked?
>>
>> --
>> Tibor Karaszi, SQL Server MVP
>>
http://www.karaszi.com/sqlserver/default.asp >>
http://www.solidqualitylearning.com/ >>
>>
>> "Sniper" <kakopappa@hotmail.com> wrote in message
>> news:ABBBC0D2-0273-435A-88FA-135E1F554DB4@microsoft.com...
>> > Hi Tibor,
>> >
>> > Thanks for your reply. it's like this, When I do a start transaction and do
>> > a row modification, it locks the hole table, it there anyway to lock only the
>> > modified row ?
>> >
>> > Thanks alot for u r time and response,
>> > -Aruna
>> >
>> >
>> > "Tibor Karaszi" wrote:
>> >
>> >> In addition to the other posts, supporting the query with good and usable indexes reduces the
>> >> risk
>> >> of getting table locks.
>> >>
>> >> --
>> >> Tibor Karaszi, SQL Server MVP
>> >>
http://www.karaszi.com/sqlserver/default.asp >> >>
http://www.solidqualitylearning.com/ >> >>
>> >>
>> >> "Sniper" <kakopappa@hotmail.com> wrote in message
>> >> news:FE3110FF-AB74-42F4-92F9-C2E68CBD5C56@microsoft.com...
>> >> > Hi guys,
>> >> > Is there anyway to change the default recode locking type (Table
>> >> > Locking) to row locking !! ?
>> >> >
>> >> > Thanks in help
>> >> > -Sniper
>> >>
>> >>
>> >>
>>
>>
>>