CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: autoincrement

  1. #1
    Join Date
    Jan 2003
    Posts
    97

    Unhappy autoincrement

    Hallo!

    I am using a ACCESS datebase and try to create a table with an unique autoincrement column. I habe found many examples for SQLServer, but nor for ACCESS. Does any knows?

    Code:
    CREATE TABLE myTable (ID integer default autoincrement primary key, name varchar(30))
    Does only works in SQLServer.

    Please... help me...

    Taggi

  2. #2
    Join Date
    Jan 2003
    Posts
    97

    Re: autoincrement

    Sometimes ist good to have somebody to spek with.

    OR... to change the words you use in your search...

    For ACCESS with C# and SQL-Statement it has to be:

    Code:
    CREATE TABLE myTable (ID COUNTER primary key, name varchar(30))
    Thanks!

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