Wednesday, March 28, 2012
memory
I have one production server where users are complaining
of slow downs. I am wondering if the problem could be
caused by insuficient memory.SQL Server is configured to
dinamicaly adjust the amount of memory used based upon
demand. From task menager I can see that SQL Server always
uses more then available physical memery ( RAM) and has to
go to the pagefile. How can I minimize or eliminate
pagefile IO ?
I am also confused whit Curent disk Queue lenght counter
always being in the range for all processors. If i have a
problem with memory Curent Disk Queue lenght should be out
of the range right ?
Thanks very much,
MirnaHi Mirna,
One way to find out if SQL Server is bottlenecked on RAM is to check these
two Performance Monitor counters: SQLServer:Memory Manager: Total Server
Memory (KB) and SQLServer:Memory Manager: Target Server Memory (KB).
The first counter, SQLServer:Memory Manager: Total Server Memory (KB), tells
you how much memory, in KB, that SQL Server is currently using. The second
counter, SQLServer:Memory Manager: Target Server Memory (KB), tells you how
much memory, in KB, that SQL Server would like to have. If the
SQLServer:Memory Manager: Target Server Memory (KB) counters is larger than
the SQLServer:Memory Manager: Total Server Memory (KB), this means that SQL
Server would like to have more memory, but can't get it.
Generally, this indicates a memory bottleneck and you need to identify what
the cause is and resolve it. In most cases, the easiest way to resolve this
problem is to add more RAM to the server.
If both of the counters are the same, then SQL Server has as much memory as
it can use and there is no existing memory bottleneck.
Take a look at the following link for more infomation:
http://www.sql-server-performance.com/performance_monitor_counters_sql_server.asp
--
Sasan Saidi,
MSc in CS, MCSE (NT4), IBM Certified MQ Administration
Senior DBA
Brascan Business Services
"I saw it work in a cartoon once so I am pretty sure I can do it."
"Mirna" wrote:
> Hi everyone,
> I have one production server where users are complaining
> of slow downs. I am wondering if the problem could be
> caused by insuficient memory.SQL Server is configured to
> dinamicaly adjust the amount of memory used based upon
> demand. From task menager I can see that SQL Server always
> uses more then available physical memery ( RAM) and has to
> go to the pagefile. How can I minimize or eliminate
> pagefile IO ?
> I am also confused whit Curent disk Queue lenght counter
> always being in the range for all processors. If i have a
> problem with memory Curent Disk Queue lenght should be out
> of the range right ?
> Thanks very much,
> Mirna
>|||Set your max memory setting in Enterprise Manager to force SQL Server not to
exceed the thresshold of physical - x MB for the O/S and other apps. Thus
you will change the dynamic memory allocation to min/max or fixed size.
Regards
"Mirna" wrote:
> Hi everyone,
> I have one production server where users are complaining
> of slow downs. I am wondering if the problem could be
> caused by insuficient memory.SQL Server is configured to
> dinamicaly adjust the amount of memory used based upon
> demand. From task menager I can see that SQL Server always
> uses more then available physical memery ( RAM) and has to
> go to the pagefile. How can I minimize or eliminate
> pagefile IO ?
> I am also confused whit Curent disk Queue lenght counter
> always being in the range for all processors. If i have a
> problem with memory Curent Disk Queue lenght should be out
> of the range right ?
> Thanks very much,
> Mirna
>|||Thanks Sasan,
yes the target server memory counter is higher then total
server memory ( 20 %) Should I try setting the max server
memory to match the physical memory or the only other
solution is to add more RAM ?
Thanks again,
Mirna
>--Original Message--
>Hi Mirna,
>One way to find out if SQL Server is bottlenecked on RAM
is to check these
>two Performance Monitor counters: SQLServer:Memory
Manager: Total Server
>Memory (KB) and SQLServer:Memory Manager: Target Server
Memory (KB).
>The first counter, SQLServer:Memory Manager: Total Server
Memory (KB), tells
>you how much memory, in KB, that SQL Server is currently
using. The second
>counter, SQLServer:Memory Manager: Target Server Memory
(KB), tells you how
>much memory, in KB, that SQL Server would like to have.
If the
>SQLServer:Memory Manager: Target Server Memory (KB)
counters is larger than
>the SQLServer:Memory Manager: Total Server Memory (KB),
this means that SQL
>Server would like to have more memory, but can't get it.
>Generally, this indicates a memory bottleneck and you
need to identify what
>the cause is and resolve it. In most cases, the easiest
way to resolve this
>problem is to add more RAM to the server.
>If both of the counters are the same, then SQL Server has
as much memory as
>it can use and there is no existing memory bottleneck.
>Take a look at the following link for more infomation:
>http://www.sql-server-
performance.com/performance_monitor_counters_sql_server.asp
>--
>Sasan Saidi,
>MSc in CS, MCSE (NT4), IBM Certified MQ Administration
>Senior DBA
>Brascan Business Services
>"I saw it work in a cartoon once so I am pretty sure I
can do it."
>"Mirna" wrote:
>> Hi everyone,
>> I have one production server where users are
complaining
>> of slow downs. I am wondering if the problem could be
>> caused by insuficient memory.SQL Server is configured
to
>> dinamicaly adjust the amount of memory used based upon
>> demand. From task menager I can see that SQL Server
always
>> uses more then available physical memery ( RAM) and has
to
>> go to the pagefile. How can I minimize or eliminate
>> pagefile IO ?
>> I am also confused whit Curent disk Queue lenght
counter
>> always being in the range for all processors. If i have
a
>> problem with memory Curent Disk Queue lenght should be
out
>> of the range right ?
>> Thanks very much,
>> Mirna
>.
>
memory
I have one production server where users are complaining
of slow downs. I am wondering if the problem could be
caused by insuficient memory.SQL Server is configured to
dinamicaly adjust the amount of memory used based upon
demand. From task menager I can see that SQL Server always
uses more then available physical memery ( RAM) and has to
go to the pagefile. How can I minimize or eliminate
pagefile IO ?
I am also confused whit Curent disk Queue lenght counter
always being in the range for all processors. If i have a
problem with memory Curent Disk Queue lenght should be out
of the range right ?
Thanks very much,
MirnaHi Mirna,
One way to find out if SQL Server is bottlenecked on RAM is to check these
two Performance Monitor counters: SQLServer:Memory Manager: Total Server
Memory (KB) and SQLServer:Memory Manager: Target Server Memory (KB).
The first counter, SQLServer:Memory Manager: Total Server Memory (KB), tells
you how much memory, in KB, that SQL Server is currently using. The second
counter, SQLServer:Memory Manager: Target Server Memory (KB), tells you how
much memory, in KB, that SQL Server would like to have. If the
SQLServer:Memory Manager: Target Server Memory (KB) counters is larger than
the SQLServer:Memory Manager: Total Server Memory (KB), this means that SQL
Server would like to have more memory, but can't get it.
Generally, this indicates a memory bottleneck and you need to identify what
the cause is and resolve it. In most cases, the easiest way to resolve this
problem is to add more RAM to the server.
If both of the counters are the same, then SQL Server has as much memory as
it can use and there is no existing memory bottleneck.
Take a look at the following link for more infomation:
[url]http://www.sql-server-performance.com/performance_monitor_counters_sql_server.asp[
/url]
Sasan Saidi,
MSc in CS, MCSE (NT4), IBM Certified MQ Administration
Senior DBA
Brascan Business Services
"I saw it work in a cartoon once so I am pretty sure I can do it."
"Mirna" wrote:
> Hi everyone,
> I have one production server where users are complaining
> of slow downs. I am wondering if the problem could be
> caused by insuficient memory.SQL Server is configured to
> dinamicaly adjust the amount of memory used based upon
> demand. From task menager I can see that SQL Server always
> uses more then available physical memery ( RAM) and has to
> go to the pagefile. How can I minimize or eliminate
> pagefile IO ?
> I am also confused whit Curent disk Queue lenght counter
> always being in the range for all processors. If i have a
> problem with memory Curent Disk Queue lenght should be out
> of the range right ?
> Thanks very much,
> Mirna
>|||Set your max memory setting in Enterprise Manager to force SQL Server not to
exceed the thresshold of physical - x MB for the O/S and other apps. Thus
you will change the dynamic memory allocation to min/max or fixed size.
Regards
"Mirna" wrote:
> Hi everyone,
> I have one production server where users are complaining
> of slow downs. I am wondering if the problem could be
> caused by insuficient memory.SQL Server is configured to
> dinamicaly adjust the amount of memory used based upon
> demand. From task menager I can see that SQL Server always
> uses more then available physical memery ( RAM) and has to
> go to the pagefile. How can I minimize or eliminate
> pagefile IO ?
> I am also confused whit Curent disk Queue lenght counter
> always being in the range for all processors. If i have a
> problem with memory Curent Disk Queue lenght should be out
> of the range right ?
> Thanks very much,
> Mirna
>|||Thanks Sasan,
yes the target server memory counter is higher then total
server memory ( 20 %) Should I try setting the max server
memory to match the physical memory or the only other
solution is to add more RAM ?
Thanks again,
Mirna
>--Original Message--
>Hi Mirna,
>One way to find out if SQL Server is bottlenecked on RAM
is to check these
>two Performance Monitor counters: SQLServer:Memory
Manager: Total Server
>Memory (KB) and SQLServer:Memory Manager: Target Server
Memory (KB).
>The first counter, SQLServer:Memory Manager: Total Server
Memory (KB), tells
>you how much memory, in KB, that SQL Server is currently
using. The second
>counter, SQLServer:Memory Manager: Target Server Memory
(KB), tells you how
>much memory, in KB, that SQL Server would like to have.
If the
>SQLServer:Memory Manager: Target Server Memory (KB)
counters is larger than
>the SQLServer:Memory Manager: Total Server Memory (KB),
this means that SQL
>Server would like to have more memory, but can't get it.
>Generally, this indicates a memory bottleneck and you
need to identify what
>the cause is and resolve it. In most cases, the easiest
way to resolve this
>problem is to add more RAM to the server.
>If both of the counters are the same, then SQL Server has
as much memory as
>it can use and there is no existing memory bottleneck.
>Take a look at the following link for more infomation:
>http://www.sql-server-
performance.com/performance_monitor_counters_sql_server.asp
>--
>Sasan Saidi,
>MSc in CS, MCSE (NT4), IBM Certified MQ Administration
>Senior DBA
>Brascan Business Services
>"I saw it work in a cartoon once so I am pretty sure I
can do it."
>"Mirna" wrote:
>
complaining[vbcol=seagreen]
to[vbcol=seagreen]
always[vbcol=seagreen]
to[vbcol=seagreen]
counter[vbcol=seagreen]
a[vbcol=seagreen]
out[vbcol=seagreen]
>.
>
memory
I have one production server where users are complaining
of slow downs. I am wondering if the problem could be
caused by insuficient memory.SQL Server is configured to
dinamicaly adjust the amount of memory used based upon
demand. From task menager I can see that SQL Server always
uses more then available physical memery ( RAM) and has to
go to the pagefile. How can I minimize or eliminate
pagefile IO ?
I am also confused whit Curent disk Queue lenght counter
always being in the range for all processors. If i have a
problem with memory Curent Disk Queue lenght should be out
of the range right ?
Thanks very much,
Mirna
Hi Mirna,
One way to find out if SQL Server is bottlenecked on RAM is to check these
two Performance Monitor counters: SQLServer:Memory Manager: Total Server
Memory (KB) and SQLServer:Memory Manager: Target Server Memory (KB).
The first counter, SQLServer:Memory Manager: Total Server Memory (KB), tells
you how much memory, in KB, that SQL Server is currently using. The second
counter, SQLServer:Memory Manager: Target Server Memory (KB), tells you how
much memory, in KB, that SQL Server would like to have. If the
SQLServer:Memory Manager: Target Server Memory (KB) counters is larger than
the SQLServer:Memory Manager: Total Server Memory (KB), this means that SQL
Server would like to have more memory, but can't get it.
Generally, this indicates a memory bottleneck and you need to identify what
the cause is and resolve it. In most cases, the easiest way to resolve this
problem is to add more RAM to the server.
If both of the counters are the same, then SQL Server has as much memory as
it can use and there is no existing memory bottleneck.
Take a look at the following link for more infomation:
http://www.sql-server-performance.co...sql_server.asp
Sasan Saidi,
MSc in CS, MCSE (NT4), IBM Certified MQ Administration
Senior DBA
Brascan Business Services
"I saw it work in a cartoon once so I am pretty sure I can do it."
"Mirna" wrote:
> Hi everyone,
> I have one production server where users are complaining
> of slow downs. I am wondering if the problem could be
> caused by insuficient memory.SQL Server is configured to
> dinamicaly adjust the amount of memory used based upon
> demand. From task menager I can see that SQL Server always
> uses more then available physical memery ( RAM) and has to
> go to the pagefile. How can I minimize or eliminate
> pagefile IO ?
> I am also confused whit Curent disk Queue lenght counter
> always being in the range for all processors. If i have a
> problem with memory Curent Disk Queue lenght should be out
> of the range right ?
> Thanks very much,
> Mirna
>
|||Set your max memory setting in Enterprise Manager to force SQL Server not to
exceed the thresshold of physical - x MB for the O/S and other apps. Thus
you will change the dynamic memory allocation to min/max or fixed size.
Regards
"Mirna" wrote:
> Hi everyone,
> I have one production server where users are complaining
> of slow downs. I am wondering if the problem could be
> caused by insuficient memory.SQL Server is configured to
> dinamicaly adjust the amount of memory used based upon
> demand. From task menager I can see that SQL Server always
> uses more then available physical memery ( RAM) and has to
> go to the pagefile. How can I minimize or eliminate
> pagefile IO ?
> I am also confused whit Curent disk Queue lenght counter
> always being in the range for all processors. If i have a
> problem with memory Curent Disk Queue lenght should be out
> of the range right ?
> Thanks very much,
> Mirna
>
|||Thanks Sasan,
yes the target server memory counter is higher then total
server memory ( 20 %) Should I try setting the max server
memory to match the physical memory or the only other
solution is to add more RAM ?
Thanks again,
Mirna
>--Original Message--
>Hi Mirna,
>One way to find out if SQL Server is bottlenecked on RAM
is to check these
>two Performance Monitor counters: SQLServer:Memory
Manager: Total Server
>Memory (KB) and SQLServer:Memory Manager: Target Server
Memory (KB).
>The first counter, SQLServer:Memory Manager: Total Server
Memory (KB), tells
>you how much memory, in KB, that SQL Server is currently
using. The second
>counter, SQLServer:Memory Manager: Target Server Memory
(KB), tells you how
>much memory, in KB, that SQL Server would like to have.
If the
>SQLServer:Memory Manager: Target Server Memory (KB)
counters is larger than
>the SQLServer:Memory Manager: Total Server Memory (KB),
this means that SQL
>Server would like to have more memory, but can't get it.
>Generally, this indicates a memory bottleneck and you
need to identify what
>the cause is and resolve it. In most cases, the easiest
way to resolve this
>problem is to add more RAM to the server.
>If both of the counters are the same, then SQL Server has
as much memory as
>it can use and there is no existing memory bottleneck.
>Take a look at the following link for more infomation:
>http://www.sql-server-
performance.com/performance_monitor_counters_sql_server.asp
>--
>Sasan Saidi,
>MSc in CS, MCSE (NT4), IBM Certified MQ Administration
>Senior DBA
>Brascan Business Services
>"I saw it work in a cartoon once so I am pretty sure I
can do it."[vbcol=seagreen]
>"Mirna" wrote:
complaining[vbcol=seagreen]
to[vbcol=seagreen]
always[vbcol=seagreen]
to[vbcol=seagreen]
counter[vbcol=seagreen]
a[vbcol=seagreen]
out
>.
>
Monday, March 26, 2012
members of db_owner can't mangage roles?
everything except manage users and roles. For example when they try to look
at the properties of a role in EM they get the following error message:
Error229: EXECUTE permission denied on object ‘sp_helprolemember’, database
‘master’, owner dbo
(The same thing happens in QA)
In master, the public role has permission to execute sp_helprolemember and
both of these users are members of the public role in master.
I also tried adding them to the db_accessadmin and db_securityadmin roles in
the database as well as making them members of the securityadmin server role.
None of this worked either.
Any suggestions?
Did you check for user, roles denied execute on the stored
procedure?
use master
go
sp_helprotect 'sp_helprolemember'
-Sue
On Wed, 27 Apr 2005 14:22:07 -0700, "AlexB_05"
<AlexB_05@.discussions.microsoft.com> wrote:
>I have two people assigned to the db_owner role in a database and they can do
>everything except manage users and roles. For example when they try to look
>at the properties of a role in EM they get the following error message:
>Error229: EXECUTE permission denied on object sp_helprolemember, database
>master, owner dbo
>(The same thing happens in QA)
>In master, the public role has permission to execute sp_helprolemember and
>both of these users are members of the public role in master.
>I also tried adding them to the db_accessadmin and db_securityadmin roles in
>the database as well as making them members of the securityadmin server role.
> None of this worked either.
>Any suggestions?
|||That was it. Somehow the public role did not have permission to execute
sp_helprolemember. Once I granted those permissions everything worked.
"Sue Hoegemeier" wrote:
> Did you check for user, roles denied execute on the stored
> procedure?
> use master
> go
> sp_helprotect 'sp_helprolemember'
> -Sue
> On Wed, 27 Apr 2005 14:22:07 -0700, "AlexB_05"
> <AlexB_05@.discussions.microsoft.com> wrote:
>
>
members of db_owner can't mangage roles?
everything except manage users and roles. For example when they try to look
at the properties of a role in EM they get the following error message:
Error229: EXECUTE permission denied on object â'sp_helprolememberâ', database
â'masterâ', owner dbo
(The same thing happens in QA)
In master, the public role has permission to execute sp_helprolemember and
both of these users are members of the public role in master.
I also tried adding them to the db_accessadmin and db_securityadmin roles in
the database as well as making them members of the securityadmin server role.
None of this worked either.
Any suggestions?Did you check for user, roles denied execute on the stored
procedure?
use master
go
sp_helprotect 'sp_helprolemember'
-Sue
On Wed, 27 Apr 2005 14:22:07 -0700, "AlexB_05"
<AlexB_05@.discussions.microsoft.com> wrote:
>I have two people assigned to the db_owner role in a database and they can do
>everything except manage users and roles. For example when they try to look
>at the properties of a role in EM they get the following error message:
>Error229: EXECUTE permission denied on object ?sp_helprolemember?, database
>?master?, owner dbo
>(The same thing happens in QA)
>In master, the public role has permission to execute sp_helprolemember and
>both of these users are members of the public role in master.
>I also tried adding them to the db_accessadmin and db_securityadmin roles in
>the database as well as making them members of the securityadmin server role.
> None of this worked either.
>Any suggestions?|||That was it. Somehow the public role did not have permission to execute
sp_helprolemember. Once I granted those permissions everything worked.
"Sue Hoegemeier" wrote:
> Did you check for user, roles denied execute on the stored
> procedure?
> use master
> go
> sp_helprotect 'sp_helprolemember'
> -Sue
> On Wed, 27 Apr 2005 14:22:07 -0700, "AlexB_05"
> <AlexB_05@.discussions.microsoft.com> wrote:
> >I have two people assigned to the db_owner role in a database and they can do
> >everything except manage users and roles. For example when they try to look
> >at the properties of a role in EM they get the following error message:
> >
> >Error229: EXECUTE permission denied on object â'sp_helprolememberâ', database
> >â'masterâ', owner dbo
> >
> >(The same thing happens in QA)
> >
> >In master, the public role has permission to execute sp_helprolemember and
> >both of these users are members of the public role in master.
> >
> >I also tried adding them to the db_accessadmin and db_securityadmin roles in
> >the database as well as making them members of the securityadmin server role.
> > None of this worked either.
> >
> >Any suggestions?
>
members of db_owner can't mangage roles?
o
everything except manage users and roles. For example when they try to look
at the properties of a role in EM they get the following error message:
Error229: EXECUTE permission denied on object ‘sp_helprolemember’, data
base
‘master’, owner dbo
(The same thing happens in QA)
In master, the public role has permission to execute sp_helprolemember and
both of these users are members of the public role in master.
I also tried adding them to the db_accessadmin and db_securityadmin roles in
the database as well as making them members of the securityadmin server role
.
None of this worked either.
Any suggestions?Did you check for user, roles denied execute on the stored
procedure?
use master
go
sp_helprotect 'sp_helprolemember'
-Sue
On Wed, 27 Apr 2005 14:22:07 -0700, "AlexB_05"
<AlexB_05@.discussions.microsoft.com> wrote:
>I have two people assigned to the db_owner role in a database and they can
do
>everything except manage users and roles. For example when they try to loo
k
>at the properties of a role in EM they get the following error message:
>Error229: EXECUTE permission denied on object sp_helprolemember, databas
e
>master, owner dbo
>(The same thing happens in QA)
>In master, the public role has permission to execute sp_helprolemember and
>both of these users are members of the public role in master.
>I also tried adding them to the db_accessadmin and db_securityadmin roles i
n
>the database as well as making them members of the securityadmin server rol
e.
> None of this worked either.
>Any suggestions?|||That was it. Somehow the public role did not have permission to execute
sp_helprolemember. Once I granted those permissions everything worked.
"Sue Hoegemeier" wrote:
> Did you check for user, roles denied execute on the stored
> procedure?
> use master
> go
> sp_helprotect 'sp_helprolemember'
> -Sue
> On Wed, 27 Apr 2005 14:22:07 -0700, "AlexB_05"
> <AlexB_05@.discussions.microsoft.com> wrote:
>
>sql
Member security question
In our AS2005 project we use two roles for two different group of users. First group included key account manager - each manager can see only his account sales. Second group - sales region managers - each sales region manager can see only sales in his region. We use custom clr callback method and everything works fine. Solution is based on dimension members and visual totals are enabled for both groups.
But now new requirement arrived: one manager is both key account AND sales region at the same time and therefore he should be able to see UNION of key account sales and region sales. Can this be accomplished somehow? I'm able to get the intersection, but never union. One solution is to turn visual totals off, but then other dimensions show all cube data, which is not acceptable.
Any help is appreciated.
Radim
I think you will need a third role for this person.
Basically I am guessing that your account security produces a set that looks something like:
Descendants([Account].[Account].[Account 1])
And that your Region security produces a set that looks something like:
Descendants([Region].[Region].[Region1])
This will result for an effective permission set of:
Descendants([Account].[Account].[Account 1]) * Descendants([Region].[Region].[Region1])
Which is effectively an intersection of the selected account with the selected region. Whereas, for the situation you describe, you would want an effective final set of:
{ {[Region].[Region].[All Region]} * Descendants([Account].[Account].[Account 1]) }
* { Descendants([Region].[Region].[Region1]) * { [Account].[Account].[All Account] } }
Which, instead of giving you a logical AND between the two sets (where members must be descendants of the Regions AND Account) will give you a logical OR (which will return members which are descendants of either the Account OR Region)
Hope this helps
|||Hi Darren!That's good description of desired solution. But how could I implement such set? Right now callback function simply returns allowed members to role, but this solution doesn't seem to be that straitforward. New role should restrict cell data, instead of dimension members?
Radim|||
Hi Radim,
Since these users (given their dual role) should be able to see all members of both Account and Region, I think that the solution would have to restrict at the cell, rather than dimension, level. However, I'm not aware of a "Visual Totals" option for Cell Security, which is one of your requirements. Visual Totals behavior could conceivably be simulated via the MDX script, if that's a viable option for you. But this would entail introducing security-related logic into the cube script.
sql