Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

NOLOCK by Default

Posted on 2010-08-25
1
1,086 Views
Last Modified: 2012-05-10
Is there a setting in Server Management Studio (or with SQL) that will run all of my SELECT queries with NOLOCK by default? I know I can specify in the actual query, but I do not want to. I just want it set for the entire session.
0
Comment
Question by:leonstryker
1 Comment
 
LVL 1

Accepted Solution

by:
ajanthony earned 500 total points
ID: 33523162
In SQL 2008 Server Management Studio

Click Tools -> Options.
In the treeview, Underneath Query Execution -> SQL Server -> Advanced.

Set transaction isolation level to READ UNCOMMITTED
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question