Viewing 15 posts - 5,356 through 5,370 (of 6,400 total)
GRANT ALTER ON SCHEMA::dbo TO db_viewcreator
This will say they have permission to alter the schema, but SQL needs to know what it can alter and as you have only given...
April 2, 2012 at 4:34 am
you need to grant alter on the schema that you want the view to be created in to the role. if you have just given CREATE VIEW to the...
April 2, 2012 at 4:21 am
create the role then grant CREATE VIEW to the role this will also imply ALTER as well
April 2, 2012 at 1:43 am
created a condition and policy on my test machine and its working as intended using a schema = 'dbo', screen shot shows the violation
this is the script, just need to...
April 2, 2012 at 1:02 am
another way would be to create a custom DDL trigger for the CREATE_PROCEDURE event which reads in the XML details of the procedure creation and checks the schema XML node....
March 30, 2012 at 8:55 am
by default everything will be created in DBO unless one of two things, you explicitally give it a different schema or your default schema is different than dbo on the...
March 30, 2012 at 8:45 am
PaulB-TheOneAndOnly (3/30/2012)
Charmer (3/30/2012)
PaulB-TheOneAndOnly (3/30/2012)
Yes. Try dynamic sql.Gimme an example Please...
Nothing beats vendor's documentation 🙂 check here: http://support.microsoft.com/kb/175850
also try here, http://bit.ly/HppLBX
March 30, 2012 at 8:27 am
You tried this?
March 30, 2012 at 4:15 am
changing the code to this works without dividing cpu_ticks with ms_ticks
SELECT
record_time,
SQLProcessUtilization,
SystemIdle,
100 - SystemIdle - SQLProcessUtilization AS OtherProcessUtilization
FROM (
SELECT
record.value('(./Record/@id)[1]', 'int') AS record_id,
record.value('(./Record/SchedulerMonitorEvent/SystemHealth/SystemIdle)[1]', 'int') AS SystemIdle,
record.value('(./Record/SchedulerMonitorEvent/SystemHealth/ProcessUtilization)[1]', 'int') AS SQLProcessUtilization,
record_time
FROM (
select...
March 30, 2012 at 3:49 am
you would have to build in some logic to the parameters like
if @minage < @maxage do nothing
if @minage > @maxage set @minage = @maxage, @maxage = @minage --needs to be...
March 30, 2012 at 3:05 am
i think something a bit more sinister is at play here as I did just that Rob and got a Eventtime of 2012-04-24 16:33:383.443 so I am thinking something is...
March 30, 2012 at 2:56 am
from this url sys.dm_os_ring_buffers is only there for backwards compatability and is not guaranteed, so what is the new DMV replacement for this DMV?
March 30, 2012 at 2:29 am
the sys.dm_os_ring_buffers table stores the past ~4 hours worth of CPU data so its just a case of running this once every 2 hours and loading it into a table...
March 30, 2012 at 2:22 am
i would look at creating a calendar table with the dates in for start and end of month, that way you can do dateparts on GETDATE to get the month...
March 30, 2012 at 1:34 am
Viewing 15 posts - 5,356 through 5,370 (of 6,400 total)