Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Login

Login

Scheduled Pinned Locked Moved Database
questionlearning
13 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Desi Bravo

    I created an address book with a login dialog box. It works fine. Now I would like to change the password and or user id. How can I do that? bravo659

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #2

    Magic. For a better answer, you'll need to tell us how you created your login box in the first place. Given that you're in the SQL forum, I'm hoping you have a database with a table of usernames and passwords. If that is so, I'd have thought all you need to do is add to this table. Christian Graus - Microsoft MVP - C++

    Y D 2 Replies Last reply
    0
    • C Christian Graus

      Magic. For a better answer, you'll need to tell us how you created your login box in the first place. Given that you're in the SQL forum, I'm hoping you have a database with a table of usernames and passwords. If that is so, I'd have thought all you need to do is add to this table. Christian Graus - Microsoft MVP - C++

      Y Offline
      Y Offline
      Yulianto
      wrote on last edited by
      #3

      Christian Graus wrote: you need to do is add edit to this table.


      Work hard, Work effectively.

      C 1 Reply Last reply
      0
      • Y Yulianto

        Christian Graus wrote: you need to do is add edit to this table.


        Work hard, Work effectively.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #4

        Depends on what you mean by edit. He needs to add a row if he wants to add a new user, assuming everything is set up decently. However, if you regard adding a row as editing, and adding a column as adding, then you'd be right. Christian Graus - Microsoft MVP - C++

        Y 1 Reply Last reply
        0
        • C Christian Graus

          Depends on what you mean by edit. He needs to add a row if he wants to add a new user, assuming everything is set up decently. However, if you regard adding a row as editing, and adding a column as adding, then you'd be right. Christian Graus - Microsoft MVP - C++

          Y Offline
          Y Offline
          Yulianto
          wrote on last edited by
          #5

          Now I would like to change the password and or user id. How can I do that? By editing/ updating the record/row.


          Work hard, Work effectively.

          C 1 Reply Last reply
          0
          • Y Yulianto

            Now I would like to change the password and or user id. How can I do that? By editing/ updating the record/row.


            Work hard, Work effectively.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #6

            OK - you've got me. He needs to change a row, and I'm an idiot. :-) I missed the 'or'. One has to hope he doesn't intend on only having one user, but changing the details from time to time. Christian Graus - Microsoft MVP - C++

            Y 1 Reply Last reply
            0
            • C Christian Graus

              OK - you've got me. He needs to change a row, and I'm an idiot. :-) I missed the 'or'. One has to hope he doesn't intend on only having one user, but changing the details from time to time. Christian Graus - Microsoft MVP - C++

              Y Offline
              Y Offline
              Yulianto
              wrote on last edited by
              #7

              Christian Graus wrote: I'm an idiot Nah, you're just didn't read it carefully.


              Work hard, Work effectively.

              1 Reply Last reply
              0
              • C Christian Graus

                Magic. For a better answer, you'll need to tell us how you created your login box in the first place. Given that you're in the SQL forum, I'm hoping you have a database with a table of usernames and passwords. If that is so, I'd have thought all you need to do is add to this table. Christian Graus - Microsoft MVP - C++

                D Offline
                D Offline
                Desi Bravo
                wrote on last edited by
                #8

                What i like to do since i already have the login box that i need to enter a user id and a password, I would need to change the password time to time. How about adding more users with passwords? I am fairly new to this sql server programming, but I am also using the MS Access to make it easier to understand what I am doing. Even though, all I have to do is change the Access to sql, and vice and versa. How can I do that? bravo659

                C 1 Reply Last reply
                0
                • D Desi Bravo

                  What i like to do since i already have the login box that i need to enter a user id and a password, I would need to change the password time to time. How about adding more users with passwords? I am fairly new to this sql server programming, but I am also using the MS Access to make it easier to understand what I am doing. Even though, all I have to do is change the Access to sql, and vice and versa. How can I do that? bravo659

                  C Offline
                  C Offline
                  Christian Graus
                  wrote on last edited by
                  #9

                  I reiterate - I need to know where your username and password are coming from, and how you use them, to answer more fully. However, if they are in a tabe of usernames and passwords, then you should be checking log in by looking for a username/password pair in the DB that's the same as what was entered. So you just need to edit a row to change the password, or add a row to add a user. If the user is used for any authentication, etc, it should also have an ID, and any reference to the user done via ID. Then you can change the name, too. If you have an Access DB and a SQL server one, and you don't use stored procedures, I'd imagine you could just connect to either from your code with no trouble. Christian Graus - Microsoft MVP - C++

                  D 1 Reply Last reply
                  0
                  • C Christian Graus

                    I reiterate - I need to know where your username and password are coming from, and how you use them, to answer more fully. However, if they are in a tabe of usernames and passwords, then you should be checking log in by looking for a username/password pair in the DB that's the same as what was entered. So you just need to edit a row to change the password, or add a row to add a user. If the user is used for any authentication, etc, it should also have an ID, and any reference to the user done via ID. Then you can change the name, too. If you have an Access DB and a SQL server one, and you don't use stored procedures, I'd imagine you could just connect to either from your code with no trouble. Christian Graus - Microsoft MVP - C++

                    D Offline
                    D Offline
                    Desi Bravo
                    wrote on last edited by
                    #10

                    What I am using is a userID and password in the Access DB tables. What I would need to know is when I add a new child form, what would be the code to add and change a password. In the first form for userid and password it has two textoxes, two buttons for login and exit. Now, the child form would be with a three textbox, one for old password, change to new password, and authenticate new password. If i want to change the username then I would create change username button which another form would appear to change the username. I really dont know how to code these changes. Could you help me in this instance. bravo659

                    C 1 Reply Last reply
                    0
                    • D Desi Bravo

                      What I am using is a userID and password in the Access DB tables. What I would need to know is when I add a new child form, what would be the code to add and change a password. In the first form for userid and password it has two textoxes, two buttons for login and exit. Now, the child form would be with a three textbox, one for old password, change to new password, and authenticate new password. If i want to change the username then I would create change username button which another form would appear to change the username. I really dont know how to code these changes. Could you help me in this instance. bravo659

                      C Offline
                      C Offline
                      Christian Graus
                      wrote on last edited by
                      #11

                      UPDATE tblLogin SET password = 'newpassword' where username = 'DessiBravo' INSERT INTO tblLogin (username, password) VALUES ('christianGraus', 'hisPassword') This is, of course, pseudo code in that I have no idea about your database schema. Christian Graus - Microsoft MVP - C++

                      A 1 Reply Last reply
                      0
                      • C Christian Graus

                        UPDATE tblLogin SET password = 'newpassword' where username = 'DessiBravo' INSERT INTO tblLogin (username, password) VALUES ('christianGraus', 'hisPassword') This is, of course, pseudo code in that I have no idea about your database schema. Christian Graus - Microsoft MVP - C++

                        A Offline
                        A Offline
                        Anonymous
                        wrote on last edited by
                        #12

                        I greatly appreciate for your assistance. I got the gist of it. Another thing, how is C++. I am planning to go back to college to take up computer programming, and the school offers C++. I am currently using VB.Net. How is the comparison between the two.

                        C 1 Reply Last reply
                        0
                        • A Anonymous

                          I greatly appreciate for your assistance. I got the gist of it. Another thing, how is C++. I am planning to go back to college to take up computer programming, and the school offers C++. I am currently using VB.Net. How is the comparison between the two.

                          C Offline
                          C Offline
                          Christian Graus
                          wrote on last edited by
                          #13

                          VB.Net is a good language for knocking together basic applications without too much effort. C++ is harder to learn, because it's more powerful and more flexible. I'd recommend buying a book like 'Teach yourself C++ in 24 hours' in order to get a feel for it before signing on for a course. It's very different to VB.NET. However, whatever languages you learn, I think you're always better off for knowing at least 2 well, it makes you more of a programmer and less of a slave to one language. Christian Graus - Microsoft MVP - C++

                          1 Reply Last reply
                          0
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • World
                          • Users
                          • Groups