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. General Programming
  3. C#
  4. Help

Help

Scheduled Pinned Locked Moved C#
helptutorialquestion
6 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.
  • A Offline
    A Offline
    amaankhan
    wrote on last edited by
    #1

    in my project, i need Serial No like 1, 2, 3, in sequence in date wise for Example today is 28/10/2009......so the serial no should be like 1.2.3 and when the date changes it must start again 1.2.3 any idea ? thanks for help

    C 1 Reply Last reply
    0
    • A amaankhan

      in my project, i need Serial No like 1, 2, 3, in sequence in date wise for Example today is 28/10/2009......so the serial no should be like 1.2.3 and when the date changes it must start again 1.2.3 any idea ? thanks for help

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You don't mention what your data store is. ASsuming a SQL DB, the resetting numbers mean you can't use an identity column, you probably just have to write code to work out the next value for the current date.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      A 2 Replies Last reply
      0
      • C Christian Graus

        You don't mention what your data store is. ASsuming a SQL DB, the resetting numbers mean you can't use an identity column, you probably just have to write code to work out the next value for the current date.

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        A Offline
        A Offline
        amaankhan
        wrote on last edited by
        #3

        thanks for reply i am using SQL DB

        1 Reply Last reply
        0
        • C Christian Graus

          You don't mention what your data store is. ASsuming a SQL DB, the resetting numbers mean you can't use an identity column, you probably just have to write code to work out the next value for the current date.

          Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

          A Offline
          A Offline
          amaankhan
          wrote on last edited by
          #4

          Sir i am trying like this.... getting the todays date and then number of records and then adding +1 to the number of records...... if date is changed (means next day) then again start from 1 and then +1 .... is this right ? thanks for help

          C 1 Reply Last reply
          0
          • A amaankhan

            Sir i am trying like this.... getting the todays date and then number of records and then adding +1 to the number of records...... if date is changed (means next day) then again start from 1 and then +1 .... is this right ? thanks for help

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            It's your business rule, but I think you described it correctly, yes.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            A 1 Reply Last reply
            0
            • C Christian Graus

              It's your business rule, but I think you described it correctly, yes.

              Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

              A Offline
              A Offline
              amaankhan
              wrote on last edited by
              #6

              thanks sir i got......... thank you very much.......

              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