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 !




How to increment the value


Posted Date: 24 Nov 2006      Total Responses: 3

Posted By: kallem laxman reddy       Member Level: Silver     Points: 2


hai
i am developing a application using asp.net with csharp and sql server 2000 as a back end
i want to increment my userid in database so how to increment it please help me out or provide some source code

Thank you
with regards
laxman




Responses

Author: Mohan Kumar    24 Nov 2006Member Level: DiamondRating:     Points: 2
hi,

increment means? i can't get you.


Author: G. Ramya Krishna    24 Nov 2006Member Level: SilverRating:     Points: 2
Hi,

You want to generate a number to the userid automatically the next number.
If yes follow the beloew code.


Declare @UserID int
set @UserID = (Select Max(eno) from emp)
set @UserID =@UserID +1
insert into Users(UserId,Username)
values(@UserID ,'xyz')

If no, Give your exact requireemnt. So that we can help you.


Author: Rajaraman    24 Nov 2006Member Level: DiamondRating:     Points: 2
use userid filed as identity




Post Reply
You must Sign In to post a response.
Next : How to increase the width of Drop Down List at client side in ASP.Net?
Previous : postback
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

Help Desk

Contact Us    Privacy Policy    Terms Of Use