C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Visual Studio »

How to autoincrement a column when a new row is inserted


Posted Date: 04 Nov 2009      Posted By: yonatan      Member Level: Bronze     Points: 1   Responses: 5



hi guys would you tell me please how to auto increment a column when a new row is inserted in visual basic .Net 2005 (vb. Net code)




Responses

Author: vipul    04 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

hi,
i can't understand you question please specify in the detail what you want "auto increment a column" ???

Please Rate This Answer If They Helpful

Thanks & Regards
Patel Vipul



Author: K Hari Prasad    04 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

If you are using the sqlserver as back end , make the column as IDENTITY.


Author: Lalji    04 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

try this link might be help to you about auto increment column

http://www.tech-archive.net/Archive/DotNet/microsoft.public.dotnet.framework.adonet/2005-09/msg00484.html



Author: Anil Kumar Pandey    04 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

are you using any Grid..

or inside data base table you can make any column as Auto increment and can specify the value to be incremented in seed like 1 or 2

Thanks & Regards
Anil Kumar Pandey



Author: Manindra Upadhyay    04 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Are u asking about gridview or database


Post Reply
You must Sign In to post a response.
Next : Employee entry form connecting to database
Previous : Display text in multiple lines
Return to Discussion Forum
Post New Message
Category: Visual Studio

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use