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

How to create a dml trigger using create trigger statements?

1084


What different steps will a sql server developer take to secure sql server?

1039


What is the difference between update lock and exclusive lock?

1028


mention different types of relationships in the dbms?

1090


What programming language would you use to create embedded functions in ssrs?

191


Is resultset an interface?

1038


What are the different authentication modes in sql server? How can it be changed?

1140


What is collation sensitivity? Explain different types.

1056


What is the difference between char, varchar and nvarchar?

1077


What does null mean?

1053


What is the guest user account in sql server? What login is it mapped to it? : sql server security

1113


what are the new features introduced in sql server 2000? : Sql server database administration

980


You are designing a database for your human resources department in the employee table, there is a field for social security number, which cannot contain null values if no value is given, you want a value of unknown to be inserted in this field what is the best approach?

1144


What is the maximum number of index per table?

1120


Why should you use or avoid select * statements?

1077