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. SQL Server 2k Formula

SQL Server 2k Formula

Scheduled Pinned Locked Moved Database
databasesql-serversysadminhelpquestion
2 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.
  • R Offline
    R Offline
    Robby
    wrote on last edited by
    #1

    I cannot find documentation/tutorials ANYWHERE for SQL Server 2000. All I want to do is increment my primary key automatically with a predefined "first two chars". For instance, when I take a New User request from my web site, I want my PK to be NU1, auto incrememnt NU2, NU3, etc...I'm sure it's a cinch...can anybody tell me how? P.S. I have really benefited by using this site. Thanks for everyone's help on past questions. Hopefully, I'll be able to help answer questions one day!:-O

    D 1 Reply Last reply
    0
    • R Robby

      I cannot find documentation/tutorials ANYWHERE for SQL Server 2000. All I want to do is increment my primary key automatically with a predefined "first two chars". For instance, when I take a New User request from my web site, I want my PK to be NU1, auto incrememnt NU2, NU3, etc...I'm sure it's a cinch...can anybody tell me how? P.S. I have really benefited by using this site. Thanks for everyone's help on past questions. Hopefully, I'll be able to help answer questions one day!:-O

      D Offline
      D Offline
      David Salter
      wrote on last edited by
      #2

      How about using an "instead of" trigger. Search for triggers in BOL and you should find loads of info.

      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