Forum Replies Created

Viewing 15 posts - 106 through 120 (of 373 total)

  • RE: Today's Random Word!

    crookj (12/13/2013)


    Ed Wagner (12/13/2013)


    crookj (12/12/2013)


    Ed Wagner (12/12/2013)


    L' Eomot Inversé (12/11/2013)


    Kurt W. Zimmerman (12/11/2013)


    JAZZ Master (12/11/2013)


    bitbucket-25253 (12/11/2013)


    whereisSQL? (12/11/2013)


    Revenant (12/11/2013)


    Sparks

    Fly

    Swat

    Team

    Services

    Mass

    Density

    Fate - oops, I thought that was destiny 🙂

    Duel of the Fates

    Fickle...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Cursor or Temp Files?

    Well with a little tinkering here is what I came up with:

    ;with C_Orders_CTE (conum, itemnum, coitemstat) as (

    select conum

    , itemnum

    ,...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Cursor or Temp Files?

    Code solutions depends on a number of things. First, it would be helpful to see the actual table descriptions.

    Second, I'd want to know the scope of record volumes, in...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Nested Cursors

    You are closing your cursors in the wrong order. You need to close the UsernameCursor within the outer while loop (DATABASENAMEC).

    Interesting side note, I've never had...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Today's Random Word!

    JAZZ Master (12/11/2013)


    bitbucket-25253 (12/11/2013)


    whereisSQL? (12/11/2013)


    Revenant (12/11/2013)


    Sparks

    Fly

    Swat

    Team

    Services

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Must Declare the scaler variable @mesg_out

    To answer your initial question, the @mesg_out was not declared within the scope of the SQL you are creating dynamically. You need to declare @mesg_out inside the quoted SQL.

    To...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Replace in string with results from another table

    ScottPletcher (12/10/2013)


    For performance reasons, it would almost certainly be better to have a trigger on the Calculations table that automatically identified and saved all variables used in a normalized table...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Replace in string with results from another table

    Have you considered creating a UDF that returns a table of index values in the formula?

    Kurt

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Replace in string with results from another table

    how many "formulas" need to be processed?

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Replace in string with results from another table

    OK, so what the approach I'd use would be to create a table variable or temp table that contains all of the indexes and associated values found in the "formula"....

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Replace in string with results from another table

    The next question I'd want an answer is; how many entries in #CalculationVariables? Based on that would drive the logic.

    Kurt

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Replace in string with results from another table

    The way I'd approach this would to start by talking out loud the logic. What you are doing is assembling an expression then executing it. It is kind...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Today's Random Word!

    L' Eomot Inversé (12/9/2013)


    crookj (12/9/2013)


    opc.three (12/9/2013)


    JAZZ Master (12/9/2013)


    Ed Wagner (12/9/2013)


    Revenant (12/9/2013)


    Kurt W. Zimmerman (12/9/2013)


    Ed Wagner (12/9/2013)


    BWFC (12/9/2013)


    whereisSQL? (12/9/2013)


    Ed Wagner (12/9/2013)


    crookj (12/9/2013)Snow (8 inches of it!)

    Driving

    Skid

    Row

    Column

    pillar

    fire

    Migration

    Route

    root

    beer

    ale

    lager

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: Debug an Insert Statement

    I found this article that may help you out.

    http://stackoverflow.com/questions/17361097/sql-server-2008-r2-arithmetic-overflow-error-converting-numeric-to-data-type-num

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

  • RE: VLDB complete index rebuilds - a little validation needed

    What are you doing to manage the transaction log? If your database is in Full recovery mode you should have a job that performs a transaction log backup.

    Also would...

    Kurt W. Zimmerman
    SR DBA
    Lefrak Organization
    New York, NY

    http://www.linkedin.com/in/kurtwzimmerman

Viewing 15 posts - 106 through 120 (of 373 total)