C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




Identity


Posted Date: 28 Aug 2008      Total Responses: 4

Posted By: narendra       Member Level: Silver     Points: 1


hi friends plz help me

what is the maximum value to which u can insert into the identity key column?
can we apply identity key on char variables







Responses

Author: D.Jeya kumar(JK)    29 Aug 2008Member Level: DiamondRating:     Points: 3
Hi,


By default it will allow 18 precision digits. We can not
create a identify column for the char variables . by default it will be created for Auto number. i think we cannot change the column to char .

Regards
JK






Author: palla    29 Aug 2008Member Level: SilverRating:     Points: 4

hi,
we cannot create an identity on non-numeric columns.
to insert values into identity column explicitly we have to use
set identity_insert tablename on

insert values then after insertion again
set identity_insert tablename off.
it will increment with the last inserted value.

regards
palla



Author: http://venkattechnicalblog.blogspot.com/    31 Aug 2008Member Level: DiamondRating:     Points: 3

If the identity value is int.. then obviously it can insert upto the maximum value of an integer type.

We can achieve on char data type.

Regards,
Venkatesan Prabu .J
http://venkattechnicalblog.blogspot.com/


Author: Sriram    05 Sep 2008Member Level: GoldRating:     Points: 2
Identity Column cannot use char,varchar it will Support int only
Identity Default will allow 18 digits

SriramRamaswamy


Post Reply
You must Sign In to post a response.
Next : unique key
Previous : Dataset
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use