Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » displaying an auto-incremented SQL identity column
Closed Thread
Old 03-27-2009, 07:12 PM   #1 (permalink)
 
Junior Techie

Join Date: Nov 2008

Posts: 79

BobLewiston is on a distinguished road

Default displaying an auto-incremented SQL identity column

Most databases have multiple users. For these databases it is a good idea to auto-increment the identity column.

I understand that an SQL identity column is not incremented until the newly-created record is inserted.

I guess this means the identity column is incremented when you actually reconnect to the database and insert the new record there, rather than just add the record to the locally-resident DataSet, correct?

And I guess this also means that for auto-incremented identity columns it is not possible to accurately display the newly-incremented identity column in the data entry WinForm used to create the new record and add it to the database, right?

For what it’s worth, the environment I’m working in is:

32-bit
SQL Server 2008 Express with Advanced Services
SQL2008 AdventureWorks
SQL Server 2008 Management Studio Express
Visual C# 2008 Express
BobLewiston is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
The Tech Forums Official 3DMark06/03 Top List gurusan Overclocking, Case Mod, Tweaking PC Performance 4136 10-29-2009 04:40 PM
how to obtain SQL Server FullText Search service? BobLewiston Programming Discussions 9 08-14-2009 08:24 AM
auto-increment identity column BobLewiston Programming Discussions 1 03-24-2009 08:00 PM
Blue Screen of Death -> Help ! Prisonbreak94 Windows Operating Systems and Software 52 10-19-2008 10:01 AM
EP45-DS3R won't allow Q9450 overclock past 3.2GHz or retain manual voltage settings mikeynavy1976 Overclocking, Case Mod, Tweaking PC Performance 24 08-20-2008 02:59 AM