CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Location
    Kerala, India
    Posts
    4

    Sequence Number in SQL Server2000

    Hi,

    I would like to know the best method for creating sequence number. I am using SQL Server2000 as back-end and VB6 as fornt-end.

    Thanks in advance
    Kiran

    Aum Namah Shivaya

  2. #2
    Join Date
    Jul 2001
    Location
    Utah USA
    Posts
    13

    Re: Sequence Number in SQL Server2000

    When defining your column in SQL set the identity property. This will cause the database engine to increment that field for each new record created. Sort of like a MSAccess Autonumber field.

    Craig

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured