Re: Creating an Auto-Number and Currency data type in SQL
From: Al Reid (areidjr_at_reidDASHhome.com)
Date: 03/12/04
- Next message: Al Reid: "Re: Get Name of Fields"
- Previous message: Ayaz Ahmed: "Re: Recordset question"
- In reply to: Ricardo Furtado: "Creating an Auto-Number and Currency data type in SQL"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 12 Mar 2004 07:18:44 -0500
MSSQL does, indeed have an auto-number type called and Identity field. It
is essentially the same as MSAccess AutoNumber.
CREATE Table TEST (
ID int IDENTITY(1,1), .....)
will create an autonumber column starting at 1 and incrementing by 1.
For Currency, see money and smallmoney data types.
Also, the SQL Server Books Online is a great source of info.
-- Al Reid "Ricardo Furtado" <anonymous@discussions.microsoft.com> wrote in message news:32AFA53F-806F-401E-9093-CFEFA7682993@microsoft.com... > i'm using SQL to create fields in a table. > Microsoft Access has the "Auto-Number" type, and i think that SQL doesn't. I think the only option i have is to use long varbinary. > I'm also using the "currency" type and i also believe that SQL doesn't have that type too > Is there any way to create an "Auto-Number" field, and a "Currency" type? > > My special thanks in advanced >
- Next message: Al Reid: "Re: Get Name of Fields"
- Previous message: Ayaz Ahmed: "Re: Recordset question"
- In reply to: Ricardo Furtado: "Creating an Auto-Number and Currency data type in SQL"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|