Please Assist

  • Hello all,

    okay i have an issue and i am going to seek the help of some experts here...

    basically i created a formula... something like this spj(16909)(a/3)+spj(16212)(a/3/3)+spj(16214)(a/3/3)+spj(16918)(a/3/3)+spj(16472)(a/3/3)+spj(16473)(a/3/3)+spj(16779)(a/3/3)

    Problem is the "IDs" such as "16909" etc are actually pulling the wrong IDs.

    Can someone give me a way of finding the old IDs which exist in the formula and update them with the new ones.

    i have more than 300 formulas and it is too long to manually update these.

    Please help.

  • Any chance of a bit more info?

    Please see the links in my sig line for more info.

    -------------------------------Posting Data Etiquette - Jeff Moden [/url]Smart way to ask a question
    There are naive questions, tedious questions, ill-phrased questions, questions put after inadequate self-criticism. But every question is a cry to understand (the world). There is no such thing as a dumb question. ― Carl Sagan
    I would never join a club that would allow me as a member - Groucho Marx

  • thanks for the response.

    okay so as explained above the formula currently reads like this

    spj(16909)(a/3)+spj(16212)(a/3/3)+spj(16214)(a/3/3)+spj(16918)(a/3/3)+spj(16472)(a/3/3)+spj(16473)(a/3/3)+spj(16779)(a/3/3)

    as you can see it contains a specific number after the bracket but this number is actually incorrect and needs to be this:

    spj(17931)(a/3)+spj(17234)(a/3/3)+spj(17236)(a/3/3)+spj(17940)(a/3/3)+spj(17494)(a/3/3)+spj(17495)(a/3/3)+spj(17801)(a/3/3)

    the number in the bracket is now the correct one, however i did this manually and i have a whole bunch of Formulas to do and this will be time consuming, therefore i need any help to find and replace the numbers in the brackets.

  • What is that from? spj is not a T-SQL function, so not SQL Server.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • spj basically means "Sub-project"

  • What language is that?

    Where do you get the numbers that need to be replaced and the numbers that replace them?

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • compufreak (10/18/2016)


    Hello all,

    okay i have an issue and i am going to seek the help of some experts here...

    basically i created a formula... something like this spj(16909)(a/3)+spj(16212)(a/3/3)+spj(16214)(a/3/3)+spj(16918)(a/3/3)+spj(16472)(a/3/3)+spj(16473)(a/3/3)+spj(16779)(a/3/3)

    Problem is the "IDs" such as "16909" etc are actually pulling the wrong IDs.

    Can someone give me a way of finding the old IDs which exist in the formula and update them with the new ones.

    i have more than 300 formulas and it is too long to manually update these.

    Please help.

    Are you saying that these formulas are stored in a table in SQL Server?

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply