Solved

Autonumber in Access97?

Posted on 1998-08-16
1
214 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now