July 26, 2012 at 6:16 am
Hi There,
Can anyone tell me what is an Identity?
Thanks
July 26, 2012 at 6:22 am
Identity (or AutoNumber) is a column that automatically generates numeric values. A start and increment value can be set, but most DBAs leave these at 1. A GUID column also generates unique keys.
Nimol
Programmer
Corbin Creative Databases, LLC, http://www.corbincreative.com
July 26, 2012 at 6:28 am
Welcome to SSC!!
You can try to Google "IDENTITY SQL Server"
I am sure you will get lots of information which can't be provided in a single forum
If you still have any doubts after reading the articles, feel free to revert with questions.
How to post data/code on a forum to get the best help - Jeff Moden
http://www.sqlservercentral.com/articles/Best+Practices/61537/
July 26, 2012 at 7:48 am
corbincreativecomputing (7/26/2012)
Nimol
Programmer
Corbin Creative Databases, LLC, http://www.corbincreative.com[/quote%5D
Just to add to, Identity can have negative values as well.
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 26, 2012 at 8:14 am
IDENTITY is a property which gives auto-incremental value to a column whenever a new record is inserted. You have to set the IDENTITY property with a column while creating a table.
Check following blog post to know about all IDENTITY columns: http://sqlwithmanoj.wordpress.com/2012/05/03/all-about-identity-columns/[/url]
You can also use IDENTITY() function with "SELECT INTO" statement.
Check following blog post for more info: http://sqlwithmanoj.wordpress.com/2011/12/15/using-identity-function-with-select-statement/[/url]
More link: http://sqlwithmanoj.wordpress.com/2011/07/08/reseed-tables-identity-column-value/[/url]
July 30, 2012 at 1:36 am
July 31, 2012 at 6:31 pm
You can try to Google "IDENTITY SQL Server"
I am sure you will get lots of information which can't be provided in a single forum
If you still have any doubts after reading the articles, feel free to revert with questions.
You'll probably get an answer faster that way as well
I used to call my self The Master on forums, then I entered the IT industry and realised how much I still have to learn.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply