Viewing 15 posts - 1,606 through 1,620 (of 7,168 total)
That seems to be the ticket. The instead trigger is fired once, and the after trigger is what continues to recurse.
USE [master]
GO
ALTER DATABASE [YourDatabaseName] SET RECURSIVE_TRIGGERS ON WITH NO_WAIT
GO
USE [YourDatabaseName]
GO
IF...
March 14, 2013 at 1:34 pm
I like to use Database Roles and only grant permissions to the Roles even if the Role will only have one member initially. Consider that if a person leaves an...
March 14, 2013 at 1:30 pm
Not a credit thing...just wanted to highlight that Steven was pointing towards a solid solution in case you crossed the posts up and missed the link he posted.
March 14, 2013 at 1:24 pm
Creating a SQLCLR object to do this is going to be your best chance initially. Ideally though you would not have stuff like that running in your data tier, and...
March 14, 2013 at 11:09 am
bugg (3/14/2013)
GilaMonster (3/14/2013)
bugg (3/14/2013)
That is why I was looking into creating a new table with the addtional column then moving the data etc and finally doing a table rename
You can...
March 14, 2013 at 11:05 am
What build are you on?
SELECT SERVERPROPERTY('Edition') AS Edition,
SERVERPROPERTY('ProductVersion') AS ProductVersion,
SERVERPROPERTY('ProductLevel') AS ProductLevel
Can you...
March 14, 2013 at 10:59 am
I do not typically recommend third-party solutions for SSIS, but in this case it's probably not worth re-inventing the wheel:
March 14, 2013 at 10:53 am
cljolly (3/14/2013)
March 14, 2013 at 10:40 am
brettstahlman (3/14/2013)
March 14, 2013 at 10:34 am
I'll have to agree with Phil. Your comment about who was defining tables gave me a bit of a shiver.
re: item 2, I agree the interface is clumsy but it...
March 14, 2013 at 8:33 am
Tell him there is nothing analogous on SQL Server and not to worry about it. If he is worried about resource allocation within an instance he can look into the...
March 14, 2013 at 8:29 am
I see what you mean. It appears when the AFTER trigger is the first one to fire, nothing carried out within that trigger done against the base table will fire...
March 14, 2013 at 8:23 am
I would recommend staying clear away from xp_cmdshell. It opens up a huge can of worms from a security and auditing standpoint and accessing the file system or the command...
March 14, 2013 at 2:18 am
Have a look into EncryptSensitiveWithPassword the option. You could also look into using a Package Configuration (of some kind) to store the connection string with the password in it but...
March 14, 2013 at 1:59 am
BIDS Helper has a Smart Diff feature that will ignore some changes in the XML, and hopefully only leave the real changes highlighted. Not that we can always make sense...
March 14, 2013 at 1:52 am
Viewing 15 posts - 1,606 through 1,620 (of 7,168 total)