Viewing 15 posts - 6,946 through 6,960 (of 14,953 total)
When I started working with databases, I found Books Online, MSDN, and even most books on the subject to be far too advanced. They assumed a lot of "you...
March 12, 2010 at 8:28 am
I have a couple of pieces of meta-code. As commented, the main one is one that will generate an audit trigger for a table.
March 12, 2010 at 8:23 am
I don't drink, but sleep deprivation has been an enemy of my productivity many, many times. And there have been times where I've told a boss that I needed...
March 12, 2010 at 8:19 am
david_wendelken (3/11/2010)
The point is that I don't have to write all of that code to test for it's existence.
And my point is that this way controls permissions whether it already...
March 12, 2010 at 6:51 am
The one I use is based on the articles I wrote on the subject. It won't work with your audit table structure.
March 12, 2010 at 6:47 am
I would probably do it more like this:
ALTER trigger [dbo].[Tier1_ChangeTracking] on [dbo].[Tier1] for insert, update
as
INSERT INTO Tier1_AUDIT (T1ID, T1Name, althline, ShortName, class, Alt_text, header, Description, Content,
BypassUrl, ButtonLoc, FrontPage, Live,...
March 11, 2010 at 11:43 am
Instead of scanning that table, I'd create a sub-table with just the ID (or other PK reference), and an "Ignored" datetime value. It would only include records that have...
March 11, 2010 at 11:31 am
david_wendelken (3/11/2010)
The whole point of "create or replace" is that I don't have to know, OR CARE, if the object...
March 11, 2010 at 11:22 am
CirquedeSQLeil (3/11/2010)
GSquared (3/11/2010)
As promised a couple of months ago, I've updated to having a beard in my pic. 🙂Holy Crap - who is that?
That's me with 2 months worth...
March 11, 2010 at 11:16 am
Roy Ernest (3/10/2010)
March 11, 2010 at 11:10 am
Alvin Ramard (3/10/2010)
GSquared (3/10/2010)
Roy Ernest (3/10/2010)
lol.. Thanks Paul. And thanks for confirming that I am Crazy.. I am known as "The crazy DBA" at my work place... 🙂
Nobody I know...
March 11, 2010 at 11:07 am
As promised a couple of months ago, I've updated to having a beard in my pic. 🙂
March 11, 2010 at 11:05 am
I'd have to see the rest of the trigger to tell you the best way to handle this, but you can detect deleted rows in a trigger because they exist...
March 11, 2010 at 10:54 am
Is there a particular reason to not use a job? It's going to be the easiest and most efficient way to handle this.
March 11, 2010 at 9:07 am
Roy Ernest (3/10/2010)
lol.. Thanks Paul. And thanks for confirming that I am Crazy.. I am known as "The crazy DBA" at my work place... 🙂
Nobody I know bothers to qualify...
March 10, 2010 at 6:49 am
Viewing 15 posts - 6,946 through 6,960 (of 14,953 total)