Forum Replies Created

Viewing 15 posts - 1,096 through 1,110 (of 1,554 total)

  • RE: This is a hard week to me

    And after finding the proc involving the error, if all substring functions look correct, then the problem lies with the data being processed.

    When this kind of errors occurs, it mostly...

  • RE: Generating a SP Dependency Tree

    There are no 100% guaranteed ways to do this, except the old-fashioned traditional roll-up-your-sleeves-and-get-dirty method.

    Audit the code, document the flow of calls and...

  • RE: Capturing an error from xp_sendmail

    So you're saying you have never written any program code before..?

    ...you always (almost) need to have some errorhandling in place for (almost) every code/program you...

  • RE: to cursor or not to cursor

    You can view a cursor like something that is based on a select statement. It is this select statement that populates the cursor.

    So, you may have a table that have...

  • RE: Capturing an error from xp_sendmail

    Yeah, it seems a lot of folks confuses @@error values with return values from procedures.

    Here's a small demo showing (what I think) you experienced...

    create proc #test

    as

    --...

  • RE: INSERT GetDate() into open table

    Another option well worth considering, is to not enter, change or delete data in EM at all.

    Make a habit to do this kind of operations in QA instead. Better...

  • RE: Capturing an error from xp_sendmail

    xp_sendmail returns one of two values (from BOL)

    Return Code Values

    0 (success) or 1 (failure)

    This is how you should check how the proc succeeded with it's intended work.

    Just checking @@error after...

  • RE: How do I delete the corresponding row?

    It sounds like the first step in lessening your grief and preventing(?) gray hair, is that you step in and remove the ability to add/modify tables from the programmers without...

  • RE: deadlock issue

    The point with this 'backward' notation, is that you can update (the other columns) and assign values from columns not updated (ie the PK) in one go.

    The net effect is...

  • RE: How do I delete the corresponding row?

    Okay, so.. you say that a dupe is made up of either of these, right..?

    1. Where payroll, staffid, start_date and end_date are the same.

    2. Where staffid, start_date, and end_date are...

  • RE: How do I delete the corresponding row?

    Ah, but if you already have a working script that deals with 1 dup, just run it several times then..?? Shouldn't that do it?

    /Kenneth

  • RE: deadlock issue

    Perhaps you could get away with just an update, and not having to deal with transactions and locking rows to prevent others from reading in 'mid-process' of the retrieval/update..

    Here's an...

  • RE: How do I delete the corresponding row?

    Ok, I guess you must rewrite the delete procedure..

    Let's start from the beginning What makes up a duplicate (ie which columns) from the...

  • RE: convert date

    Looks like you're trying to insert the date in the specific format of mm/dd/yyyy ...?

    If the column storing the date is a char, then converting dates to a specific style...

  • RE: How do I delete the corresponding row?

    If the correct link to sickness days is sickid, then you should retrieve it, and use that to find the corresponding sicknessdays.

    If you can't use it because the dupes is made out...

Viewing 15 posts - 1,096 through 1,110 (of 1,554 total)