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

Can we join two tables without primary key?

1058


What are character string data types in ms sql server?

1260


what is a transaction and what are acid properties? : Sql server database administration

1028


Do you know what is blocking?

967


What are the steps you can take to avoid “deadlocks”?

978


How you can change a cross join into an inner join?

979


Name 3 ways to get an accurate count of the number of records in a table?

1041


what is checksum in sql server.........???

1691


What are the different types of replication you can set up in sql server?

1052


What is difference between unique and primary key?

918


How to create and drop temp table in sql server?

1060


In which tcp/ip port does sql server run? Can it be changed?

996


What are key constraints?

978


How exceptions can be handled in sql server programming?

1019


What do you need to connect php to sql server?

1111