Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. [solved] unknown syntax of stored procedure

[solved] unknown syntax of stored procedure

Scheduled Pinned Locked Moved Database
sharepointdatabasequestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    delosb
    wrote on last edited by
    #1

    Hi Experts, in an existing sp at our company I find this: SET @MonthFrom=(@Month%12)-1 where @Monthis a calling parameter and @MonthFrom is declared within the sp. Can someone please explain what "%12" means? Thank you, Bernd

    P 1 Reply Last reply
    0
    • D delosb

      Hi Experts, in an existing sp at our company I find this: SET @MonthFrom=(@Month%12)-1 where @Monthis a calling parameter and @MonthFrom is declared within the sp. Can someone please explain what "%12" means? Thank you, Bernd

      P Offline
      P Offline
      Peter Leow
      wrote on last edited by
      #2

      It is called The modulo arithmetic operator[^] It returns the remainder of dividing @month by 12.

      D 1 Reply Last reply
      0
      • P Peter Leow

        It is called The modulo arithmetic operator[^] It returns the remainder of dividing @month by 12.

        D Offline
        D Offline
        delosb
        wrote on last edited by
        #3

        Hi Peter, thx for your help. I could no determine that from the code and without a clue I was unable to find it in the internet. Now I wonder what sense this makes? None?!? Greets Bernd

        P 1 Reply Last reply
        0
        • D delosb

          Hi Peter, thx for your help. I could no determine that from the code and without a clue I was unable to find it in the internet. Now I wonder what sense this makes? None?!? Greets Bernd

          P Offline
          P Offline
          Peter Leow
          wrote on last edited by
          #4

          You are welcome. Please do one thing, according to CP instruction : "If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you." Thanks.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups