Solved

Autonumber in Access97?

Posted on 1998-08-16
1
216 Views
Last Modified: 2010-03-19
Hi experts,
I am using SQL Server 6.5 sp4 at back end and Access97 in front.  I need to define a field with autonumber for access.  What is the equvaliant in SQL Server.

thanks
0
Comment
Question by:msali
1 Comment
 
LVL 1

Accepted Solution

by:
DennisH earned 20 total points
ID: 1089581
Yes there is an equivalent in SQL-Server 6.5 and later.  In SQL-Server you need to set the IDENTITY property of the field that you want to be an autonumber field.  If you are using Enterprise Manager for SQL Server, you can just set the Identity column in the Table Designer, Advanced Features, Primary Key tab.  You can also set it using a Transact-SQL CREATE TABLE statement.  The field will be of type "INT".
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question