由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - NOLOCK为什么不是蓝色的?
相关主题
请问T-SQL中Group By之后怎么找到特定的recordSQL Server Question: how delete works
新手请教SQL 语法问题- alias 和 join抛砖引玉: 谈谈SQL Server locking and blocking
问个SQL Server 2005问题query running long time
问个SQL的问题同事被FIRE掉了
SQL server 2000有hidden records吗?SQL server 2005 deadlock
SQL SERVER 面试题, find the objectsSQL Server Trigger on System Base Table or Catalog View
请教sql server的一个select..into问题急!各位请进:process blocked by another process
sql server 面试题 (9)how to register SQL Server in intranet
相关话题的讨论汇总
话题: nolock话题: server话题: select话题: client话题: sql
进入Database版参与讨论
1 (共1页)
m****e
发帖数: 1197
1
在有些SQL SERVER上NOLOCK是蓝色的,就像SELECT等等这种RESERVED WORD。有些
SERVER上TYPE OUT以后不会变成蓝色的。请问这是为什么?不会变蓝的SERVER上,
NOLOCK是不是不起作用的就算我加了?
i****a
发帖数: 36252
2
from the same workstation client or are you using the client on different
machines?
m****e
发帖数: 1197
3
i am using a clinet different from the server.
is this a setting issue? how can I reset it?

【在 i****a 的大作中提到】
: from the same workstation client or are you using the client on different
: machines?

i****a
发帖数: 36252
4
try to go Tools -> Options
Environment -> Fonts and Colors and click "Use defaults"
but in any case, the color on your sql query has no effect on the execution
m****e
发帖数: 1197
5
it's all default. and i reset it again.
my co-work's client is blue on NOLOCK, why mine is different? any clue?

execution

【在 i****a 的大作中提到】
: try to go Tools -> Options
: Environment -> Fonts and Colors and click "Use defaults"
: but in any case, the color on your sql query has no effect on the execution

i****a
发帖数: 36252
6
are you on SQL management studio 2008?
in fonts and colors again, select "Keyword" in the "Display items:" box.
does it have blue color as foreground color?
m****e
发帖数: 1197
7
yes, it was set to default, blue.
i even tried customizing it to red, it applies to other keywords like SELECT
, etc, but nothing happened to NOLOCK.
it looks to me NOLOCK is not set as "reserved keywords" on this server. is
it possible? this setting comes from Mircorsoft or something can be altered
by DBA?

【在 i****a 的大作中提到】
: are you on SQL management studio 2008?
: in fonts and colors again, select "Keyword" in the "Display items:" box.
: does it have blue color as foreground color?

i****a
发帖数: 36252
8
again, color and font is on the client only, server has nothing to do with
it.

SELECT
is
altered

【在 m****e 的大作中提到】
: yes, it was set to default, blue.
: i even tried customizing it to red, it applies to other keywords like SELECT
: , etc, but nothing happened to NOLOCK.
: it looks to me NOLOCK is not set as "reserved keywords" on this server. is
: it possible? this setting comes from Mircorsoft or something can be altered
: by DBA?

1 (共1页)
进入Database版参与讨论
相关主题
how to register SQL Server in intranetSQL server 2000有hidden records吗?
Any SSIS high hand here?SQL SERVER 面试题, find the objects
什么也不懂,要考个SQL Server 的证请教sql server的一个select..into问题
journal for sql serversql server 面试题 (9)
请问T-SQL中Group By之后怎么找到特定的recordSQL Server Question: how delete works
新手请教SQL 语法问题- alias 和 join抛砖引玉: 谈谈SQL Server locking and blocking
问个SQL Server 2005问题query running long time
问个SQL的问题同事被FIRE掉了
相关话题的讨论汇总
话题: nolock话题: server话题: select话题: client话题: sql