Viewing 15 posts - 1,456 through 1,470 (of 14,953 total)
You don't need to record the "new value" for a valid audit log. That's in the table and can be retrieved from there. Save yourself some storage space,...
May 19, 2012 at 11:31 pm
Jeff Moden (5/18/2012)
May 18, 2012 at 10:59 pm
I once built a whole audit system for a database using For XML. Do the columns as "NullIf(Deleted.MyColumn, Inserted.MyColumn) as MyColumn", in the Select, and you very cleverly get...
May 18, 2012 at 8:57 am
For a dynamic column name like that, you'll either need to use an Unpivot statement that lists the months, or you'll need to use dynamic SQL. Sounds like you...
May 18, 2012 at 8:52 am
mtassin (5/18/2012)
Gazareth (5/18/2012)
dwain.c (5/18/2012)
May 18, 2012 at 8:51 am
dwain.c (5/17/2012)
GSquared (5/17/2012)
May 18, 2012 at 8:49 am
If you want to mess around with it a bit, it occurs to me that you could use an Output clause on a Merge statement to end up inserting two...
May 17, 2012 at 2:20 pm
sturner (5/17/2012)
GSquared (5/17/2012)
sturner (5/17/2012)
I like to hire the ones I can pay the least amount of money. 😛
I know a DBA you can get really inexpensively.
It's mainly because he's...
May 17, 2012 at 2:09 pm
I don't get what you're trying to do with "AS" there, and neither does SQL Server.
"AS" in a Select statement indicates a column alias, but you have a data function...
May 17, 2012 at 2:06 pm
Lynn Pettis (5/17/2012)
jcrawf02 (5/17/2012)
http://www.geekologie.com/2012/05/im-not-special-chart-of-how-common-a-bir.php Think it depends when your birthday is, too.Interesting. The second half of September is the most common!
9 months after New Year's Eve parties. Yep....
May 17, 2012 at 2:04 pm
sturner (5/17/2012)
I like to hire the ones I can pay the least amount of money. 😛
I know a DBA you can get really inexpensively.
It's mainly because he's never done...
May 17, 2012 at 2:01 pm
Gullimeel (5/17/2012)
May 17, 2012 at 12:23 pm
Brandie Tarvin (5/17/2012)
That's what I was wondering. Thank you, Gus. You have saved me some head-banging time.
You're welcome.
May 17, 2012 at 12:01 pm
I have my own technique for interviewing. It aims more at personality and intelligence than at specific skillset. Itdoes include the skills needed, but secondary in importance. ...
May 17, 2012 at 12:00 pm
Considering that you need to do two actions if you get a match (create new and cancel old), Merge isn't the right solution.
May 17, 2012 at 11:27 am
Viewing 15 posts - 1,456 through 1,470 (of 14,953 total)