Viewing 15 posts - 211 through 225 (of 301 total)
I would like to script out permissions assigned to a user for symmetric key/certificate created for column level encryption. Thanks.
February 3, 2016 at 5:02 am
Hi Perry,
I'm not able to script out the permissions for Symmetric keys/Certificate.
Thanks!
February 2, 2016 at 3:52 pm
Thanks a lot Perry! Appreciate your help!!
February 2, 2016 at 3:14 pm
Thanks!
USE [Test]
GO
/****** Object: Trigger [dbo].[TR_Aud_Update_Datetime_Update_User] Script Date: 1/30/2016 11:16:58 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[TR_Aud_Update_Datetime_Update_User]
ON [dbo].[Users]
FOR UPDATE
AS
-- Do not put anything before these lines!
IF...
January 30, 2016 at 9:20 am
Appreciate your help on this Hugo & Gail!
Updated the script:
USE [Test]
GO
/****** Object: Trigger [dbo].[TR_Aud_Update_Datetime_Update_User] Script Date: 1/30/2016 10:58:39 AM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER dbo.TR_Aud_Update_Datetime_Update_User
ON...
January 30, 2016 at 9:04 am
Sorry I was trying to update this from my phone as I had no access to system.
Please see updated script.
USE [Test]
GO
/****** Object: Trigger [dbo].[TR_Aud_Update_Datetime_Update_User] Script Date:...
January 30, 2016 at 8:34 am
Thanks for the advise Gail. I tried to modify the script.
January 30, 2016 at 7:58 am
Please validate the updated script.
--User_ID is PK Identity
CREATE TRIGGER [dbo].[TR_Aud_Update_Datetime_Update_User]
ON [dbo].[Users]
FOR UPDATE
AS
IF @@ROWCOUNT = 0
RETURN;
IF NOT EXISTS (SELECT * FROM inserted) RETURN;
SET NOCOUNT ON;
BEGIN
UPDATE dbo.Users
SET Aud_Update_Datetime=CURRENT_TIMESTAMP,...
January 30, 2016 at 7:42 am
Thanks a lot Hugo. Could you please provide a full script for the trigger with your recommended changes?
Sorry, I'm not good with scripting!
January 30, 2016 at 6:40 am
Can I create trigger & Constraints like this? Please verify the script.
Table name: [Users]
Audit Column names:
-----------------------
Aud_Create_User (Use SYSTEM USER)
Aud_Create_DateTime (Use create datetime)
Aud_Update_User (Use SYSTEM USER)
Aud_Update_DateTime (Use update...
January 29, 2016 at 6:29 pm
I did the following steps and it worked.
DCOM User Group Membership
•Remotely logged into the server where SQL Server Integration Service was running.
•Started the Server Manager and brought up the...
January 26, 2016 at 5:57 am
Thanks Gail. I used VARCHAR(n) and it works.
January 22, 2016 at 9:42 am
Viewing 15 posts - 211 through 225 (of 301 total)