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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to create custome IDENTITY(AutoIncrement) Field?

How to create custome IDENTITY(AutoIncrement) Field?

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorialquestion
3 Posts 3 Posters 1 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
    DotNetWWW
    wrote on last edited by
    #1

    Hi all , What's the best solution to create a custome identity/autoincrement field in sql server 2005? thanks in advance ,

    C G 2 Replies Last reply
    0
    • D DotNetWWW

      Hi all , What's the best solution to create a custome identity/autoincrement field in sql server 2005? thanks in advance ,

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      DotNetWWW wrote:

      What's the best solution to create a custome identity/autoincrement field in sql server 2005?

      Do you mean other than setting IDENTITY(start, jump) on the appropriate column? You could possibly create a function and make use the function as the default value for the column. I don't know if that would work. I've never tried it.


      Upcoming FREE developer events: * Developer Day Scotland My website | blog

      1 Reply Last reply
      0
      • D DotNetWWW

        Hi all , What's the best solution to create a custome identity/autoincrement field in sql server 2005? thanks in advance ,

        G Offline
        G Offline
        Gamzun
        wrote on last edited by
        #3

        go to design mode in management studio and do the changed according to your needs .....:confused:

        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