myLittleTools Community Forum

Welcome Guest Search | Active Topics | Members | Log In | Register

Auto Increment Options · View
RyanW
Posted: Thursday, March 15, 2007 9:47:33 PM
Rank: Newbie
Groups: Member

Joined: 3/15/2007
Posts: 1
Points: 0
Hey,

How would i go about creating a auto increment for a coloumn. Basically creating a unique key hat would increment that i could use.

Any help would be appreciated smile
elian
Posted: Thursday, March 15, 2007 10:01:44 PM

Rank: Administration
Groups: Administration

Joined: 9/11/2006
Posts: 605
Points: 649
Location: Enghien Les Bains, France
Hi

When creating the column, choose the properties like below:
Data Type: int
Allow nulls: false
Is Identity: true
Identity Increment: 1
Identity Seed: 1

If you want to use this column as a primary key, then you can check the Key checkbox.

Hope this helps

Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Theme created by myLittleTools
Powered by Yet Another Forum.net version 1.9.1.8 (NET v2.0) - 3/29/2008
Copyright © 2003-2008 Yet Another Forum.net. All rights reserved.