Forum Replies Created

Viewing 12 posts - 196 through 208 (of 208 total)

  • RE: DB Recovery

    Andrew Watson (12/17/2008)


    Since the question states "...using the log backups", and there can't be any in Simple mode, my reasoning was that the correct answer has to be "none of...

    Random Technical Stuff[/url]

  • RE: strange dbcc checkdb error

    Cool...

    I'm curious, how does that checksum work?

    Random Technical Stuff[/url]

  • RE: strange dbcc checkdb error

    Paul Randal (12/14/2008)


    Hey George - I had a thought - can you try changing the setting of NUMERIC_ROUNDABORT and see if CHECKTABLE completes? If it does, you might be able...

    Random Technical Stuff[/url]

  • RE: strange dbcc checkdb error

    I could be wrong here... but...

    Somehow you have an index on a computed column that is guaranteed to give a arithmetic overflow error.

    For an index on a computer column...

    Random Technical Stuff[/url]

  • RE: strange dbcc checkdb error

    george sibbald (12/14/2008)


    CREATE TABLE [dbo].[Observances] (

    [ObservanceID] [bigint] NOT NULL ,

    [ObservanceTime] [datetime] NOT NULL ,

    [ObservanceType] [tinyint] NULL ,

    [SecChkID] [int] NULL ,

    [SensorID] [int] NOT NULL ,

    [SourceID] [int] NOT NULL ,

    [TargetID] [int] NOT...

    Random Technical Stuff[/url]

  • RE: How To Avoid Msg 106

    henrik staun poulsen (12/9/2008)


    Hi icocks,

    Well, I've seen worse; like the programmer that loved to write "BEGIN TRAN", but forgot a few "COMMIT" or "ROLLBACK".

    And this system actually works, and makes...

    Random Technical Stuff[/url]

  • RE: Divide by zero error encountered

    ramadesai108 (11/14/2008)


    Hello All,

    Now the following statement works fine but it produces number of digits to the right of the decimal:

    CAST(ROUND((((t.ItmRecvdYR1 - t.ItmRecvdYR2)/(t.ItmRecvdYR1 * 1.0)) * 100),0)...

    Random Technical Stuff[/url]

  • RE: Storing Negative Numbers

    Chirag (11/11/2008)


    ta.bu.shi.da.yu (11/11/2008)


    Chirag (11/10/2008)


    You do not store either credit or debit values as negative becoz u need to take these values and show them in various reports .This would need...

    Random Technical Stuff[/url]

  • RE: Divide by zero error encountered

    Lynn Pettis (11/7/2008)


    GilaMonster (11/6/2008)


    You're dividing by t.SoldYR1 in the code that works and t.SoldYR2 in the code that doesn't. Are there any rows where t.SoldYR2 is 0?

    Better question, are there...

    Random Technical Stuff[/url]

  • RE: Divide by zero error encountered

    What if SoldYR1 is 0 and SoldYR2 is a negative value?

    SoldYR1 = 0

    SoldYR2 = -1

    Thus:

    (t.SoldYR1 - t.SoldYR2)/(t.SoldYR1 * 1)

    becomes:

    (0-(-1))/(0 * 1)

    Divide by zero.

    Random Technical Stuff[/url]

  • RE: Storing Negative Numbers

    Chirag (11/10/2008)


    You do not store either credit or debit values as negative becoz u need to take these values and show them in various reports .This would need multiplying with...

    Random Technical Stuff[/url]

  • RE: Storing Negative Numbers

    Evidently never heard of twos compliment.

    As Lynn Pettis wrote:

    "Not all credits are negative. It depends if they are expenses, liabilities, or assests."

    Thus it makes no sense not to...

    Random Technical Stuff[/url]

Viewing 12 posts - 196 through 208 (of 208 total)