Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8118469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:29:48+00:00 2026-06-06T04:29:48+00:00

In asp.net web page got username, password, emailid from login page using session. In

  • 0

In asp.net web page got username, password, emailid from login page using session. In edit profile page user want to change username and emailid and it has been updated in sql db. Before going to update first select the particular user record using session, get new username and new emailid check with records except that user record. If no one in that record means allow user to update otherwise show the msg “already exist”. How to do this using stored procedure?

Any one pls provide stored procedure coding for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:29:49+00:00Added an answer on June 6, 2026 at 4:29 am
    Create PROCEDURE [dbo].[uspUpdateUserName] 
    
        @newusername varchar(500),
        @newPassword varchar(500),
        @UserID int,
    @Result int output
    
    AS
    BEGIN
    
        if exists(Select username from table 
        where username = @newusername and Password = @Password)
        Begin
            Print('already exist')
            Set @Result = -1
        End
        else
        Begin
             Update table
             Set username = @newusername,
             Password = @Password
             where UserID = @UserID
         Set @Result = UserID     
    
        End
    
    END
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Am developing a Web application using ASP.net, in the login page of my application
I've got a regular ASP.NET web form page and am pasting in a <%=
I have an asp.net web page (C# 2008) where the user would enter an
I am using the ReportViewer control on an ASP.NET web page and when deployed
I've got a custom ASP.Net web user control I've built; done this enough times
I've got an asp.net web page that is making 7 async requests to a
We've got a page in our asp.net web system that uses response.redirect to redirect
I've got an ASP.NET page with a simple form. The user fills out the
I want to publish my ASP.net based web page on Windows 7 machine.But,I got
I've got an ASP.NET web form which uses UpdatePanels to allow partial page postbacks.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.