Hi Munish
As Jeff says it is worth checking the Books Online But if you are scripting the Table you should end up with something near to this
BEGIN TRANSACTION
SET QUOTED_IDENTIFIER ON
SET ARITHABORT ON
SET NUMERIC_ROUNDABORT OFF
SET CONCAT_NULL_YIELDS_NULL ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
COMMIT TRANSACTION
BEGIN TRANSACTION
GO
CREATE TABLE dbo.TableNameOfYourChoosing
(
/*
[ID]is the Column Name,
Int is its Datatype of an Integer,
As this is our Identity Column we do not want to allow null values,
IDENTITY (1,1) Sets the Column as Identity, (1 represents the very first seed to start with
,1) is the amount to increment by
*/
[ID] int NOT NULL IDENTITY (1, 1),
--Column [Name], DataType Varchar(50) - specify max length
[Name] varchar(50) NULL,
--Password of DataType Varchar(50) again you can specify lengh by replaing a value where the 50 appears. Note: A Max of 255
[Password] varchar(50) NULL
) ON [PRIMARY]
GO
COMMIT
Hope this Helps
Thanks
Chris
|