Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is a NOLOCK?

Answer Posted / michael

Advantage:
applying nolock in select statement will increase
concurreny and performance in fetching.

Disadvantage:
it does'nt consider the transaction scenario, even if the
transaction is under process not yet commited or rollback
it will fetch the current record
eg

begin tran
insert into tablename
values('1','asdf')

select * from tablename with (nolock)

-- it will display the table with inserted record.
but the transaction is not completed, it can be rollback
so it became dirty read.

Is This Answer Correct ?    28 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what are the restrictions that views have to follow?

1079


What is the difference between an index and a unique index?

1000


What are the different authentication modes in sql server?

1116


What is the difference between inner join and equi join?

997


Can primary key be null?

932


Explain what is the use of custom fields in report?

926


What is reference section?

1000


What are the differences between union, intersect, and minus operators?

1086


How to check status of stored procedure in sql server?

986


what are acid properties? : Sql server database administration

997


How will you find out if there are expensive SQL statements running or not?

1015


How does SSIS(Sql Server Integration Services) deffer from DTS(Data Transformation Services)?

1208


What will be the maximum number of index per table?

1002


Explain transaction server implicit?

983


Why functions are used in sql server?

960