While the use of AutoNumber and Identity fields in tables is greatly applauded by database designers the world over, they can be annoying for developers to use. The problem being that, when we add records to the database, there are many cases where we need to know the key of the record that has just been added. Fortunately, there are a number of techniques that are available to assist us in our task. In this article we look at the methods for both SQL Server and Access, with an eye to the pros and cons of each. As always, our goal is to give you enough information to make up your mind.
Identifying Your New Records
- Introduction
- Sql Server
- Microsoft Access
Introduction
You might also like...
About the author
Bruce Johnson
I am the owner of a small application development consulting company that specialized in the design and implementation of Internet-based applications. While there are others who can make a web ...
Interested in writing for us? Find out more.
SQL Server books
-
SQL Wait Stats Joes 2 Pros: SQL Performance Tuning Techniques Using Wait Statistics, Types & Queues
You learn a lot when thrown into a crisis situation, where everyone is looking to you for answers. The system is down, the CEO is pleading to you for answers as the each minute cuts the company’s bottom line. When you are in a hurry, you need some ne...
SQL Server forum discussion
-
problem with select within select
by hamidreza.hr923 (2 replies)
-
convert EMPTY fields to NULL?
by viktorcheberachko (5 replies)
-
how to delete values of a particular column in a table
by sanjaymishra112sm112 (7 replies)
-
Send mail from stored Procedure.
by Mulish Mehdi (3 replies)
-
how to update multiple entries
by khari6579 (1 replies)
SQL Server podcasts
-
Deep Fried Bytes: What is the Big Deal about Big Data?
Published 8 years ago, running time 0h39m
In this episode, Woody sits down with Andrew Brust to discuss another “big” technology for developers and IT professionals: Big Data. Woody and Andrew talk about what Big Data is, who is using it, what tools are available and finally how we has technologists can use this for our products and serv.
SQL Server jobs
-
C# .NET SQL Developer
NMQA in London, United Kingdom
200-400 per day -
Senior Software Engineer
ABX Express (M) Sdn Bhd in Petaling Jaya, Malaysia
$18,000-20,000 USD per year
Comments