Viewing 15 posts - 6,151 through 6,165 (of 6,400 total)
put sp_addmessage into BOL, google etc which will give you the syntax
then create a message which has meaning to you
November 17, 2011 at 5:53 am
You can create a job via the central management server across all servers which are members of the CMS, but you need to do it in T-SQL, you cant use...
November 17, 2011 at 4:35 am
CREATE TRIGGER [DatabaseChangeTrigger] ON ALL SERVER
FOR DDL_EVENTS
AS
BEGIN
DECLARE @data XML;
DECLARE @schema SYSNAME;
DECLARE @object SYSNAME;
DECLARE @eventType SYSNAME;
DECLARE @user SYSNAME;
DECLARE @mess NVARCHAR(MAX);
DECLARE @dbname SYSNAME;
SET @user = SUSER_NAME()
SET @data = EVENTDATA();
SET @eventType =...
November 17, 2011 at 4:02 am
are all the health checks different for each server?
if they are then it would be a case of creating the individual jobs on each server
if not you could look at...
November 17, 2011 at 3:52 am
please post the DDL and sample data of the objects in the problem
November 17, 2011 at 3:11 am
have you prefixed the new db on to the query
oldmasterdb.sys.sql_logins
November 17, 2011 at 2:43 am
Dev (11/17/2011)
anthony.green (11/17/2011)
this is a good reason why service accounts should be used with none expiring passwords to run SQL server services
Agree for SQL Server Service Accounts. ...
November 17, 2011 at 1:31 am
Dev (11/17/2011)
bpportman 52825 (11/16/2011)
I was able to...
November 17, 2011 at 1:23 am
this is a good reason why service accounts should be used with none expiring passwords to run SQL server services
November 17, 2011 at 1:21 am
alternative
DECLARE @NUMBER INT
SELECT @NUMBER = COUNT(*) FROM ATable
SET @NUMBER = @NUMBER -5
SELECT * FROM ATable WHERE ID NOT IN (SELECT TOP (@NUMBER) ID FROM ATable)
The reason its a random order...
November 16, 2011 at 7:34 am
They can still create under DBO as you cannot specify a default schema for an AD group, so it will always default to DBO
One way to get around this is...
November 16, 2011 at 5:54 am
Usman Butt (11/16/2011)
Why don't you explicitly DENY the permissions on [dbo] schema for that AD Group.
What happens should a user be part of the AD group and also part of...
November 16, 2011 at 5:51 am
this really isn't the site to be asking this as PCI DSS is very broad and not specific to SQL.
what tier and level are you aiming at as that depends...
November 16, 2011 at 5:45 am
you could also build an expression to dynamically generate the dates if you are clued up on the expression builders in SSRS
other wise like Ole says, build in a new...
November 16, 2011 at 5:13 am
Are you under any space constraints on the hard drive? If not then I wouldnt shrink the database.
Shrinking will cause fragmentation in the database, so you will have to...
November 16, 2011 at 2:47 am
Viewing 15 posts - 6,151 through 6,165 (of 6,400 total)