Viewing 15 posts - 6,556 through 6,570 (of 14,953 total)
You'll either need to use the quirky update running totals routine (search for "running totals" on this site), and accept the risks/liabities that has, or use a cursor, to make...
October 14, 2010 at 10:56 am
Flood the Tigris for Truncate?
October 14, 2010 at 10:52 am
jcrawf02 (10/11/2010)
A novel way to annoy your spouse and get your geek on each breakfast
If you can do it to a bagel, can you also do it to a donut?...
October 11, 2010 at 11:17 am
No. I think that a trigger is most likely not the best solution.
Can you build a separate database with a log table in it? Is there an identity-type...
October 11, 2010 at 11:14 am
I don't see actual table definitions in here, so I can't really build the query for you.
What it looks like is one table (ControlLog) is in a one-to-many relationship with...
October 11, 2010 at 11:10 am
Kris Sledge (10/11/2010)
October 11, 2010 at 11:03 am
I don't see where PVal and such are defined in your table.
Beyond that, are you trying to use "For XML" to produce this from an SQL table, or are you...
October 11, 2010 at 10:59 am
On review, it also looks like your trigger will probably produce incorrect results if more than one row is inserted at a time. Can't be sure about that, since...
October 11, 2010 at 10:53 am
The subquery in the If statement is probably the one that's blowing up.
It looks like you're trying to increment a number in a column. Why not use an Identity...
October 11, 2010 at 10:51 am
How close to "when a new row is added" is close enough?
I'd tend to not mess with a vendor's database, because it often breaks terms and nullifies support contracts, and...
October 11, 2010 at 10:48 am
I tend to use one or another source control solution for this. That's the recommended practice on just about any sort of file that can be modified by multiple...
October 11, 2010 at 10:45 am
Since it's SQL 2000, the best bet will probably be a UDF that uses a Numbers or Tally table to split it apart into rows, based on the commas. ...
October 11, 2010 at 10:41 am
I must be missing something. Why would restoring anything break the log chain?
October 11, 2010 at 9:56 am
Viewing 15 posts - 6,556 through 6,570 (of 14,953 total)