Click here to Skip to main content
15,902,783 members
Home / Discussions / Database
   

Database

 
GeneralQuestion concerning Sorting DataGrids Pin
nad226315-May-05 5:06
nad226315-May-05 5:06 
GeneralRe: Question concerning Sorting DataGrids Pin
Dominic Farr28-Jun-05 20:03
Dominic Farr28-Jun-05 20:03 
GeneralRe: Question concerning Sorting DataGrids Pin
Dominic Farr30-Jun-05 6:51
Dominic Farr30-Jun-05 6:51 
Questionupdateable query? Pin
Jerry Hammond15-May-05 4:56
Jerry Hammond15-May-05 4:56 
AnswerRe: updateable query? Pin
anj198315-May-05 5:20
anj198315-May-05 5:20 
GeneralTimeSpan instead of DateTime in a DataSet populated from a SQL Anywhere DB Pin
JasonJB14-May-05 4:38
JasonJB14-May-05 4:38 
GeneralGenerate Auto Number in SQL server 2000 Pin
imshally8114-May-05 0:42
imshally8114-May-05 0:42 
GeneralRe: Generate Auto Number in SQL server 2000 Pin
Colin Angus Mackay14-May-05 3:55
Colin Angus Mackay14-May-05 3:55 
When you create your table set the column to be an IDENTITY column like this:
CREATE TABLE [dbo].[Categories] (
	[CategoryID] [int] IDENTITY (1, 1) NOT NULL ,
	[CategoryName] [nvarchar] (15) COLLATE Latin1_General_CI_AS NOT NULL ,
	[Description] [ntext] COLLATE Latin1_General_CI_AS NULL ,
)


The numbers in the brackets after IDENTITY refer to the seed and increment and can be omitted. If you don't specify the numbers the default behaviour will be equivalent to IDENTITY(1,1)

Does this help?


My: Blog | Photos | Next SQL Presentation
WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More


GeneralLogin page Pin
Desi Bravo13-May-05 12:38
Desi Bravo13-May-05 12:38 
GeneralRe: Login page Pin
MoustafaS13-May-05 14:34
MoustafaS13-May-05 14:34 
GeneralRe: Login page Pin
Desi Bravo14-May-05 19:55
Desi Bravo14-May-05 19:55 
GeneralRe: Login page Pin
MoustafaS15-May-05 0:32
MoustafaS15-May-05 0:32 
GeneralRe: Login page Pin
Desi Bravo16-May-05 15:35
Desi Bravo16-May-05 15:35 
GeneralRe: Login page Pin
jonathan1516-May-05 1:59
jonathan1516-May-05 1:59 
GeneralRe: Login page Pin
Colin Angus Mackay16-May-05 6:08
Colin Angus Mackay16-May-05 6:08 
GeneralRe: Login page Pin
Desi Bravo16-May-05 15:34
Desi Bravo16-May-05 15:34 
GeneralRe: Login page Pin
Colin Angus Mackay16-May-05 22:04
Colin Angus Mackay16-May-05 22:04 
GeneralSqlDataReader Pin
Member 195262813-May-05 6:35
Member 195262813-May-05 6:35 
GeneralRe: SqlDataReader Pin
Colin Angus Mackay13-May-05 6:56
Colin Angus Mackay13-May-05 6:56 
GeneralRe: SqlDataReader Pin
Member 195262813-May-05 7:12
Member 195262813-May-05 7:12 
GeneralRe: SqlDataReader Pin
Albert Pascual13-May-05 13:27
sitebuilderAlbert Pascual13-May-05 13:27 
GeneralRe: SqlDataReader Pin
Colin Angus Mackay13-May-05 21:54
Colin Angus Mackay13-May-05 21:54 
GeneralRe: SqlDataReader Pin
Albert Pascual16-May-05 5:35
sitebuilderAlbert Pascual16-May-05 5:35 
GeneralRe: SqlDataReader Pin
Colin Angus Mackay16-May-05 5:42
Colin Angus Mackay16-May-05 5:42 
GeneralRe: SqlDataReader Pin
Albert Pascual16-May-05 5:56
sitebuilderAlbert Pascual16-May-05 5:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.