Viewing 15 posts - 14,506 through 14,520 (of 14,953 total)
Jeff:
I've been thinking about the point of including Insert in the logging trigger.
What would you do in a circumstance where you find out that some employee has been altering records...
March 20, 2008 at 3:43 pm
Jason Selburg (3/20/2008)
I say just do a full backup after every UPDATE or DELETE. :w00t:
WOW!!!! I should have thought of that!!! That would be so much better!!!! :hehe:
March 20, 2008 at 3:16 pm
Thanks Jeff.
On the use of Insert in the trigger, that gives me a date the data was first created, and by whom. I don't like having "CreatedDate" and "CreatedBy"...
March 20, 2008 at 2:43 pm
In Catch statements, when I want to roll back, I usually use:
While @@trancount > 0
rollback
That gets rid of that error.
March 20, 2008 at 1:25 pm
Separate ones will end up with better performance, usually. This is due to stored execution plans.
March 20, 2008 at 1:20 pm
Without the relevant code, here are some general things to look for:
A) Is there a "Where" clause in the view that limits the rows it returns?
B) Are there columns in...
March 20, 2008 at 1:19 pm
GilaMonster (3/20/2008)
GSquared (3/19/2008)
March 20, 2008 at 6:53 am
Matt Miller (3/19/2008)
...Knowing the pattern allows you to come up with something better.
Yeah.
Of course, as in my prior example, turning "235 dogs, 5 cats", into "2355", is probably not a...
March 20, 2008 at 6:51 am
My next test has a major caveat on it: It won't work if there are two or more separate numbers in a field. For example, "123 dogs, 5 cats",...
March 19, 2008 at 3:46 pm
Yeah, the scan count on Numbers is totally insane. I saw the same thing when I originally put it together. Looks like the regex is probably best for...
March 19, 2008 at 3:26 pm
Matt Miller (3/19/2008)...but three times faster is Marginally??? The Regex function is the last one one the list.
Sorry, didn't look far enough down on the list of results you provided....
March 19, 2008 at 3:23 pm
Did you try the stacked CTEs script that I tested last, or just the inline functions?
Judging by the IO numbers, I'm going to assume you used the inline function that...
March 19, 2008 at 2:15 pm
I never would have thought of doing the TypeID in the sub-tables as a calculated column. Tried it out, and you have to persist it to use it that...
March 19, 2008 at 2:02 pm
GilaMonster (3/19/2008)
Shorter transactions means less blocking and less chance of deadlocks. In turn means less work to do. Always a good thing. 😀
If you're using transactions to reduce the workload...
March 19, 2008 at 1:23 pm
A script I posted on another thread in this forum illustrates why I like the layout and readability of CTEs.
The thread is at http://www.sqlservercentral.com/Forums/Topic470379-338-1.aspx
The script is:
;with
CTE1 (ID, Position, Val)...
March 19, 2008 at 12:46 pm
Viewing 15 posts - 14,506 through 14,520 (of 14,953 total)