Viewing 15 posts - 1,426 through 1,440 (of 2,008 total)
aarded (11/21/2011)
MarkusB (11/21/2011)
In your code you GRANT VIEW SERVER STATE to Report but not to DMView. The procedure works on my system if you grant VIEW SERVER STATE to DMView.
OK...
November 21, 2011 at 2:57 am
It was just an example. Please don't just follow it, try to understand it. You are missing on Server Level permissions.
BTW Did you follow Markus advice? It should work for...
November 21, 2011 at 2:48 am
aarded (11/21/2011)
Dev (11/21/2011)
EXECUTE AS LOGIN = 'DMView'; -- Context Switch
SELECT physical_io FROM master..sysprocesses WITH (NOLOCK) WHERE spid = @@SPID
SELECT cntr_value...
November 21, 2011 at 2:14 am
Change you SP to execute it in Login's Context...
EXECUTE AS LOGIN = 'DMView'; -- Context Switch
SELECT physical_io FROM master..sysprocesses WITH (NOLOCK) WHERE spid = @@SPID
SELECT cntr_value FROM master.sys.dm_os_performance_counters
November 21, 2011 at 1:49 am
'VIEW SERVER STATE' is a permission given to login.
GRANT permission [ ,...n ]
TO <grantee_principal> [ ,...n ] [ WITH GRANT OPTION ]
...
November 21, 2011 at 1:42 am
cost is not my concern - performance is for sure.
I wish my company believe in this policy / thoughts. π
November 21, 2011 at 1:24 am
jp.sqldba (11/21/2011)
Error: 18456, Severity: 14, State: 8.
Base on the Error state u can identify the error...
November 21, 2011 at 12:55 am
Thanks opc.three & Jeff for your thoughts.
I would like to clarify few things on my end.
β’By saying that βSpace is Cheapβ I never meant that we can misuse the Disk...
November 21, 2011 at 12:49 am
The actual discussion started here & the thumb rule here is NOT to use ORDER BY.
Last 5 rows
http://www.sqlservercentral.com/Forums/Topic1206622-391-1.aspx
November 20, 2011 at 11:59 pm
Planning a SQL Server Installation
http://msdn.microsoft.com/en-us/library/bb500442.aspx
How to: Install SQL Server 2008 R2 (Setup)
http://msdn.microsoft.com/en-us/library/ms143219.aspx
How to: Upgrade to SQL Server 2008 R2 (Setup)
November 20, 2011 at 11:46 pm
I believe your database structure is like this.
CREATE TABLE GF
(
GF_ID INT, -- PK
DATA VARCHAR(100)
);
CREATE TABLE F
(
GF_ID INT, -- COMPOSITE PK, FK
F_ID INT, -- COMPOSITE PK
DATA VARCHAR(100)
);
CREATE TABLE C
(
GF_ID INT, --...
November 20, 2011 at 11:32 pm
GilaMonster (11/19/2011)
Thing is, all the columns must be nullable and it's intended for columns that are mostly (90%+) NULL
I'm not going to write out 1000+ columns,...
November 20, 2011 at 4:51 am
Having a "tall skinny" (NVP or Name Value Pair) table, like what you're suggesting, would actually more than triple the storage space required because, not only must you store the...
November 20, 2011 at 4:36 am
Perry Whittle (11/19/2011)
alban_ml (11/19/2011)
problem risolvet ..a login as sa πI would say that's problems just beginning, but that's just me π
π
Agree with you Perry π
November 20, 2011 at 3:58 am
Agree with Gail but letβs see if we can attempt it.
$queryL = $select.$from.$where.$order;
Based on your code (specifically above line) I believe you are building query at runtime (Dynamic SQL). Can...
November 20, 2011 at 3:51 am
Viewing 15 posts - 1,426 through 1,440 (of 2,008 total)