Solved

Autonumber in Access97?

Posted on 1998-08-16
1
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

630 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