How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisR
EXEC sp_who 'active'
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>
|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>
|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>
|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>
|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>
Showing posts with label accurate. Show all posts
Showing posts with label accurate. Show all posts
Wednesday, March 21, 2012
how many open connections?
How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisREXEC sp_who 'active'
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always has
>> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
>> was thinking to open Profiler and use the "existing connections" option
>> but was wondering if there is a better way?
>>
>> TIA, ChrisR
>|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>> That will show you the Active connections.
>> If you need to know the exact number, query sysprocesses.
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>>
>|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>> Thanks Mike... but heres what I dont get. I have a local sql server on my
>> desktop. No replication, the server agent isnt on, I have 2 open Query
>> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and
>> shows 13 connections, sysprocesses show 16. What is making up all these
>> connections?
>>
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>> That will show you the Active connections.
>> If you need to know the exact number, query sysprocesses.
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>>
>>
>
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisREXEC sp_who 'active'
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always has
>> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
>> was thinking to open Profiler and use the "existing connections" option
>> but was wondering if there is a better way?
>>
>> TIA, ChrisR
>|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>> That will show you the Active connections.
>> If you need to know the exact number, query sysprocesses.
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>>
>|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>> Thanks Mike... but heres what I dont get. I have a local sql server on my
>> desktop. No replication, the server agent isnt on, I have 2 open Query
>> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and
>> shows 13 connections, sysprocesses show 16. What is making up all these
>> connections?
>>
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>> That will show you the Active connections.
>> If you need to know the exact number, query sysprocesses.
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>>
>>
>
how many open connections?
How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisREXEC sp_who 'active'
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisREXEC sp_who 'active'
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>
Wednesday, March 7, 2012
How is sysindexes.rows updated by SQL Server?
I know that the rows column on sysindexes is not always accurate, and
that I can force and update by using DBCC UPDATEUSAGE, but I'm
wondering what happens "behind the scenes" so that this value is
eventually updated with the correct value.
The particular example that I'm working with is this: a developer
noticed that the rows property on the table pop-up in EM doesn't match
the actual row count. I explained to him why the values didn't match,
but I have to believe that eventually this value will be changed and
EM will report the accurate row count. Is this correct?
Thanks in advance!
Maria
One thing that corrects the value is DBCC CHECKDB (which I assume that you run regularly).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Maria Vogel" <vogelm@.meijer.com> wrote in message news:1715eae1.0405110654.460c627@.posting.google.co m...
> I know that the rows column on sysindexes is not always accurate, and
> that I can force and update by using DBCC UPDATEUSAGE, but I'm
> wondering what happens "behind the scenes" so that this value is
> eventually updated with the correct value.
> The particular example that I'm working with is this: a developer
> noticed that the rows property on the table pop-up in EM doesn't match
> the actual row count. I explained to him why the values didn't match,
> but I have to believe that eventually this value will be changed and
> EM will report the accurate row count. Is this correct?
> Thanks in advance!
> Maria
|||Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> One thing that corrects the value is DBCC CHECKDB (which I assume that you
run regularly).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
> "Maria Vogel" <vogelm@.meijer.com> wrote in message
news:1715eae1.0405110654.460c627@.posting.google.co m...
>
|||Ahh, thanks Paul. I didn't know that was changed since the old days (I still recall 6.5, where only way to
adjust space allocation for syslogs was through CHECKDB...). :-)
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:%23OrDTGFOEHA.1104@.TK2MSFTNGP10.phx.gbl...
> Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> run regularly).
> news:1715eae1.0405110654.460c627@.posting.google.co m...
>
that I can force and update by using DBCC UPDATEUSAGE, but I'm
wondering what happens "behind the scenes" so that this value is
eventually updated with the correct value.
The particular example that I'm working with is this: a developer
noticed that the rows property on the table pop-up in EM doesn't match
the actual row count. I explained to him why the values didn't match,
but I have to believe that eventually this value will be changed and
EM will report the accurate row count. Is this correct?
Thanks in advance!
Maria
One thing that corrects the value is DBCC CHECKDB (which I assume that you run regularly).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Maria Vogel" <vogelm@.meijer.com> wrote in message news:1715eae1.0405110654.460c627@.posting.google.co m...
> I know that the rows column on sysindexes is not always accurate, and
> that I can force and update by using DBCC UPDATEUSAGE, but I'm
> wondering what happens "behind the scenes" so that this value is
> eventually updated with the correct value.
> The particular example that I'm working with is this: a developer
> noticed that the rows property on the table pop-up in EM doesn't match
> the actual row count. I explained to him why the values didn't match,
> but I have to believe that eventually this value will be changed and
> EM will report the accurate row count. Is this correct?
> Thanks in advance!
> Maria
|||Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> One thing that corrects the value is DBCC CHECKDB (which I assume that you
run regularly).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
> "Maria Vogel" <vogelm@.meijer.com> wrote in message
news:1715eae1.0405110654.460c627@.posting.google.co m...
>
|||Ahh, thanks Paul. I didn't know that was changed since the old days (I still recall 6.5, where only way to
adjust space allocation for syslogs was through CHECKDB...). :-)
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:%23OrDTGFOEHA.1104@.TK2MSFTNGP10.phx.gbl...
> Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> run regularly).
> news:1715eae1.0405110654.460c627@.posting.google.co m...
>
Labels:
accurate,
andthat,
column,
database,
dbcc,
force,
imwondering,
microsoft,
mysql,
oracle,
rows,
server,
sql,
sysindexes,
sysindexesrows,
update,
updated,
updateusage
How is sysindexes.rows updated by SQL Server?
I know that the rows column on sysindexes is not always accurate, and
that I can force and update by using DBCC UPDATEUSAGE, but I'm
wondering what happens "behind the scenes" so that this value is
eventually updated with the correct value.
The particular example that I'm working with is this: a developer
noticed that the rows property on the table pop-up in EM doesn't match
the actual row count. I explained to him why the values didn't match,
but I have to believe that eventually this value will be changed and
EM will report the accurate row count. Is this correct?
Thanks in advance!
MariaOne thing that corrects the value is DBCC CHECKDB (which I assume that you r
un regularly).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Maria Vogel" <vogelm@.meijer.com> wrote in message news:1715eae1.0405110654.460c627@.posting.
google.com...
> I know that the rows column on sysindexes is not always accurate, and
> that I can force and update by using DBCC UPDATEUSAGE, but I'm
> wondering what happens "behind the scenes" so that this value is
> eventually updated with the correct value.
> The particular example that I'm working with is this: a developer
> noticed that the rows property on the table pop-up in EM doesn't match
> the actual row count. I explained to him why the values didn't match,
> but I have to believe that eventually this value will be changed and
> EM will report the accurate row count. Is this correct?
> Thanks in advance!
> Maria|||Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> One thing that corrects the value is DBCC CHECKDB (which I assume that you
run regularly).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
> "Maria Vogel" <vogelm@.meijer.com> wrote in message
news:1715eae1.0405110654.460c627@.posting.google.com...
>|||Ahh, thanks Paul. I didn't know that was changed since the old days (I still
recall 6.5, where only way to
adjust space allocation for syslogs was through CHECKDB...). :-)
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:%23OrDTGFOEHA.1104@.TK2MSFTNGP10.phx.gbl...
> Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no rights
.
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote i
n
> message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> run regularly).
> news:1715eae1.0405110654.460c627@.posting.google.com...
>
that I can force and update by using DBCC UPDATEUSAGE, but I'm
wondering what happens "behind the scenes" so that this value is
eventually updated with the correct value.
The particular example that I'm working with is this: a developer
noticed that the rows property on the table pop-up in EM doesn't match
the actual row count. I explained to him why the values didn't match,
but I have to believe that eventually this value will be changed and
EM will report the accurate row count. Is this correct?
Thanks in advance!
MariaOne thing that corrects the value is DBCC CHECKDB (which I assume that you r
un regularly).
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Maria Vogel" <vogelm@.meijer.com> wrote in message news:1715eae1.0405110654.460c627@.posting.
google.com...
> I know that the rows column on sysindexes is not always accurate, and
> that I can force and update by using DBCC UPDATEUSAGE, but I'm
> wondering what happens "behind the scenes" so that this value is
> eventually updated with the correct value.
> The particular example that I'm working with is this: a developer
> noticed that the rows property on the table pop-up in EM doesn't match
> the actual row count. I explained to him why the values didn't match,
> but I have to believe that eventually this value will be changed and
> EM will report the accurate row count. Is this correct?
> Thanks in advance!
> Maria|||Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> One thing that corrects the value is DBCC CHECKDB (which I assume that you
run regularly).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
> "Maria Vogel" <vogelm@.meijer.com> wrote in message
news:1715eae1.0405110654.460c627@.posting.google.com...
>|||Ahh, thanks Paul. I didn't know that was changed since the old days (I still
recall 6.5, where only way to
adjust space allocation for syslogs was through CHECKDB...). :-)
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:%23OrDTGFOEHA.1104@.TK2MSFTNGP10.phx.gbl...
> Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no rights
.
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote i
n
> message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> run regularly).
> news:1715eae1.0405110654.460c627@.posting.google.com...
>
How is sysindexes.rows updated by SQL Server?
I know that the rows column on sysindexes is not always accurate, and
that I can force and update by using DBCC UPDATEUSAGE, but I'm
wondering what happens "behind the scenes" so that this value is
eventually updated with the correct value.
The particular example that I'm working with is this: a developer
noticed that the rows property on the table pop-up in EM doesn't match
the actual row count. I explained to him why the values didn't match,
but I have to believe that eventually this value will be changed and
EM will report the accurate row count. Is this correct?
Thanks in advance!
MariaOne thing that corrects the value is DBCC CHECKDB (which I assume that you run regularly).
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Maria Vogel" <vogelm@.meijer.com> wrote in message news:1715eae1.0405110654.460c627@.posting.google.com...
> I know that the rows column on sysindexes is not always accurate, and
> that I can force and update by using DBCC UPDATEUSAGE, but I'm
> wondering what happens "behind the scenes" so that this value is
> eventually updated with the correct value.
> The particular example that I'm working with is this: a developer
> noticed that the rows property on the table pop-up in EM doesn't match
> the actual row count. I explained to him why the values didn't match,
> but I have to believe that eventually this value will be changed and
> EM will report the accurate row count. Is this correct?
> Thanks in advance!
> Maria|||Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
--
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> One thing that corrects the value is DBCC CHECKDB (which I assume that you
run regularly).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
> "Maria Vogel" <vogelm@.meijer.com> wrote in message
news:1715eae1.0405110654.460c627@.posting.google.com...
> > I know that the rows column on sysindexes is not always accurate, and
> > that I can force and update by using DBCC UPDATEUSAGE, but I'm
> > wondering what happens "behind the scenes" so that this value is
> > eventually updated with the correct value.
> >
> > The particular example that I'm working with is this: a developer
> > noticed that the rows property on the table pop-up in EM doesn't match
> > the actual row count. I explained to him why the values didn't match,
> > but I have to believe that eventually this value will be changed and
> > EM will report the accurate row count. Is this correct?
> >
> > Thanks in advance!
> > Maria
>|||Ahh, thanks Paul. I didn't know that was changed since the old days (I still recall 6.5, where only way to
adjust space allocation for syslogs was through CHECKDB...). :-)
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:%23OrDTGFOEHA.1104@.TK2MSFTNGP10.phx.gbl...
> Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> > One thing that corrects the value is DBCC CHECKDB (which I assume that you
> run regularly).
> >
> > --
> > Tibor Karaszi, SQL Server MVP
> > http://www.karaszi.com/sqlserver/default.asp
> >
> >
> > "Maria Vogel" <vogelm@.meijer.com> wrote in message
> news:1715eae1.0405110654.460c627@.posting.google.com...
> > > I know that the rows column on sysindexes is not always accurate, and
> > > that I can force and update by using DBCC UPDATEUSAGE, but I'm
> > > wondering what happens "behind the scenes" so that this value is
> > > eventually updated with the correct value.
> > >
> > > The particular example that I'm working with is this: a developer
> > > noticed that the rows property on the table pop-up in EM doesn't match
> > > the actual row count. I explained to him why the values didn't match,
> > > but I have to believe that eventually this value will be changed and
> > > EM will report the accurate row count. Is this correct?
> > >
> > > Thanks in advance!
> > > Maria
> >
> >
>
that I can force and update by using DBCC UPDATEUSAGE, but I'm
wondering what happens "behind the scenes" so that this value is
eventually updated with the correct value.
The particular example that I'm working with is this: a developer
noticed that the rows property on the table pop-up in EM doesn't match
the actual row count. I explained to him why the values didn't match,
but I have to believe that eventually this value will be changed and
EM will report the accurate row count. Is this correct?
Thanks in advance!
MariaOne thing that corrects the value is DBCC CHECKDB (which I assume that you run regularly).
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Maria Vogel" <vogelm@.meijer.com> wrote in message news:1715eae1.0405110654.460c627@.posting.google.com...
> I know that the rows column on sysindexes is not always accurate, and
> that I can force and update by using DBCC UPDATEUSAGE, but I'm
> wondering what happens "behind the scenes" so that this value is
> eventually updated with the correct value.
> The particular example that I'm working with is this: a developer
> noticed that the rows property on the table pop-up in EM doesn't match
> the actual row count. I explained to him why the values didn't match,
> but I have to believe that eventually this value will be changed and
> EM will report the accurate row count. Is this correct?
> Thanks in advance!
> Maria|||Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
--
Paul Randal
Dev Lead, Microsoft SQL Server Storage Engine
This posting is provided "AS IS" with no warranties, and confers no rights.
"Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> One thing that corrects the value is DBCC CHECKDB (which I assume that you
run regularly).
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
>
> "Maria Vogel" <vogelm@.meijer.com> wrote in message
news:1715eae1.0405110654.460c627@.posting.google.com...
> > I know that the rows column on sysindexes is not always accurate, and
> > that I can force and update by using DBCC UPDATEUSAGE, but I'm
> > wondering what happens "behind the scenes" so that this value is
> > eventually updated with the correct value.
> >
> > The particular example that I'm working with is this: a developer
> > noticed that the rows property on the table pop-up in EM doesn't match
> > the actual row count. I explained to him why the values didn't match,
> > but I have to believe that eventually this value will be changed and
> > EM will report the accurate row count. Is this correct?
> >
> > Thanks in advance!
> > Maria
>|||Ahh, thanks Paul. I didn't know that was changed since the old days (I still recall 6.5, where only way to
adjust space allocation for syslogs was through CHECKDB...). :-)
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"Paul S Randal [MS]" <prandal@.online.microsoft.com> wrote in message
news:%23OrDTGFOEHA.1104@.TK2MSFTNGP10.phx.gbl...
> Tibor, no it doesn't. Only DBCC UPDATEUSAGE does it.
> --
> Paul Randal
> Dev Lead, Microsoft SQL Server Storage Engine
> This posting is provided "AS IS" with no warranties, and confers no rights.
> "Tibor Karaszi" <tibor_please.no.email_karaszi@.hotmail.nomail.com> wrote in
> message news:evWisr$NEHA.3596@.tk2msftngp13.phx.gbl...
> > One thing that corrects the value is DBCC CHECKDB (which I assume that you
> run regularly).
> >
> > --
> > Tibor Karaszi, SQL Server MVP
> > http://www.karaszi.com/sqlserver/default.asp
> >
> >
> > "Maria Vogel" <vogelm@.meijer.com> wrote in message
> news:1715eae1.0405110654.460c627@.posting.google.com...
> > > I know that the rows column on sysindexes is not always accurate, and
> > > that I can force and update by using DBCC UPDATEUSAGE, but I'm
> > > wondering what happens "behind the scenes" so that this value is
> > > eventually updated with the correct value.
> > >
> > > The particular example that I'm working with is this: a developer
> > > noticed that the rows property on the table pop-up in EM doesn't match
> > > the actual row count. I explained to him why the values didn't match,
> > > but I have to believe that eventually this value will be changed and
> > > EM will report the accurate row count. Is this correct?
> > >
> > > Thanks in advance!
> > > Maria
> >
> >
>
Subscribe to:
Posts (Atom)