Viewing 15 posts - 3,346 through 3,360 (of 6,401 total)
No worries, glad it sorted the issue for you.
November 16, 2012 at 7:42 am
Unsure why your having trouble with the command text
CREATE TRIGGER ddl_trig_CreateLogin
ON ALL SERVER
FOR CREATE_LOGIN
AS
-- Declare variables
DECLARE @mailSubject Nvarchar(100);
DECLARE @mailBody Nvarchar(MAX);
DECLARE @data XML;
DECLARE @text Nvarchar(max);
DECLARE @user Nvarchar(max);
DECLARE @newuser NVARCHAR(MAX);
SET @data =...
November 16, 2012 at 7:11 am
Yep sorry, you need to do all your xml shredding outside of your email block
-- Script to add trigger to alert (via email) when a new login is created on...
November 16, 2012 at 6:16 am
can you copy out all of the output window and paste it in a txt file and attach it, the screen shot strips out the important bits at the end...
November 16, 2012 at 6:04 am
What is your full SQLCMD call?
November 16, 2012 at 6:02 am
If your using windows authentication then you replace the -U and -P switches for the -E switch, also remember that the switches are case sensitive.
November 16, 2012 at 5:49 am
You should be able to knock one up quick using msdb.dbo.syspolicy_################ tables
November 16, 2012 at 5:48 am
It looks like your not setting @data = EVENTDATA() unless I am being blind and cant see it in the code.
Also if your shredding the TSQLCommand node you need to...
November 16, 2012 at 5:01 am
What is the total amount of RAM in the server?
November 16, 2012 at 4:41 am
As Gail has already said a number of times, high memory usage on a SQL server is a VERY GOOD THING[/u].
Go and get a copy of the Accidental DBA guide...
November 16, 2012 at 3:07 am
Look at creating a DDL trigger for the CREATE LOGIN facet which sends an email via sp_send_dbmail.
Something like the following
CREATE TRIGGER LoginCreateTrigger ON ALL SERVER
FOR CREATE_LOGIN
AS
BEGIN
DECLARE @data XML;
SET @data =...
November 16, 2012 at 2:53 am
It specifies who you want the owner of the schema to be.
So it says that the schema is owned by the dbo login.
You can grant authoirzation to any valid login...
November 16, 2012 at 2:19 am
Yes that is the way that subscriptions work but as your using Enterprise edition you only need to have 1 subscription as you can use Data Driven subscriptions to do...
November 16, 2012 at 2:16 am
Doh, yeah I was getting confused with the hidden properties as I knew it had one but forgot it doesnt have a true properties section, I tried to hack the...
November 16, 2012 at 2:00 am
whats the output of RESTORE HEADERONLY 'backup path.bak'?
November 15, 2012 at 8:37 am
Viewing 15 posts - 3,346 through 3,360 (of 6,401 total)