C# - Create User Registration Or Sign Up Form With SQL Server

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ธ.ค. 2024

ความคิดเห็น • 160

  • @CodAffection
    @CodAffection  7 ปีที่แล้ว +3

    goo.gl/RFY5C2 : Subscribe to CodAffection
    goo.gl/SUi4bg : Login Window in C# Using SQL Server
    goo.gl/zV892S : C# CRUD Operations With SQL Server
    goo.gl/NhNQeZ : Export Excel in C# Applications
    :

  • @p1ntos
    @p1ntos 4 ปีที่แล้ว +4

    VERY USEFUL VIDEO EVEN IN 2020, Thanks!

  • @OriginalTubester
    @OriginalTubester 6 ปีที่แล้ว +5

    I followed through and this video helped loads, thank you.

  • @nsanerydah
    @nsanerydah 4 ปีที่แล้ว +1

    Great job. Very easy to understand. Keep up the good work Sir!

  • @bienvinidolibre3723
    @bienvinidolibre3723 2 ปีที่แล้ว

    thank you.. for the video have a good day.. brother.

  • @rajim1480
    @rajim1480 ปีที่แล้ว

    Thanks for Your kind efforts. It's easily understandable as i am a new learner. God Bless You.

  • @type-1civilization527
    @type-1civilization527 5 ปีที่แล้ว +3

    OMG, you really helped me, thanks!😉

  • @harikrishnants8545
    @harikrishnants8545 4 ปีที่แล้ว +3

    ERROR Found:
    System.Data.SqlClient.SqlException: 'Procedure or function 'addreg' expects parameter '@id', which was not supplied.'

  • @j_merc
    @j_merc 5 ปีที่แล้ว

    At 9:56 what is that connection string? Where did it come from?

    • @bluesilhouette6748
      @bluesilhouette6748 5 ปีที่แล้ว

      th-cam.com/video/zsorq1NsbTA/w-d-xo.html watch this

    • @bluesilhouette6748
      @bluesilhouette6748 5 ปีที่แล้ว

      The setup may be different based on what database you r using like MySQL or access

  • @thayalinimuththiah7011
    @thayalinimuththiah7011 7 ปีที่แล้ว

    Thank you very much. I used This instruction to Create WPf form.

  • @Hitury
    @Hitury 4 ปีที่แล้ว

    Does any changes to the database apply for other people using my program?

  • @benjamintenhove582
    @benjamintenhove582 6 ปีที่แล้ว +1

    Verry nice video!! Thanks a lot

  • @yusraelahi9877
    @yusraelahi9877 6 ปีที่แล้ว

    best teaching method i like it very much please share more videos with simple and easy way us

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      thanks for your wonderful feedback.

  • @shovikanand3214
    @shovikanand3214 3 ปีที่แล้ว

    Great teaching.. Thanks

  • @danielsaxlind5052
    @danielsaxlind5052 5 ปีที่แล้ว +1

    Any suggestion on what to do if u dont want to have the possiblite to add accounts with same Username ?

  • @shivanis3431
    @shivanis3431 3 ปีที่แล้ว

    can u please tell me why you have used storeprocedure

  • @angrysunshinebandit5114
    @angrysunshinebandit5114 4 ปีที่แล้ว +1

    need urgent help as need this done for a university deadline 17th april 11:30pm
    how to i fix this issue
    sqlCon.Open();
    and the lines below are generating a instance failure error, but i cant see how to fix it
    please help

    • @bobmichell4088
      @bobmichell4088 4 ปีที่แล้ว

      Did you ever find the answer

    • @angrysunshinebandit5114
      @angrysunshinebandit5114 4 ปีที่แล้ว

      @@bobmichell4088 in the end yeah, but i had to rely on C++ as the arrays were giving me trouble and connecting to my database was easier that way
      Looking forward to future videos on this channel

  • @TIAGO543211
    @TIAGO543211 5 ปีที่แล้ว

    may god bless you, you are the better one!!

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว +1

      thanks for your wonderful feedback.

  • @danairmagonzalezmachorro9763
    @danairmagonzalezmachorro9763 2 ปีที่แล้ว

    Thamk you so much!

  • @euginebryansoncadiz1834
    @euginebryansoncadiz1834 4 ปีที่แล้ว +2

    Theres an error when executing the store procedure "Msg 156, Level 15, State 1, Procedure UserAdd, Line 9
    Incorrect syntax near the keyword 'AS'."

    • @thebenzc200
      @thebenzc200 3 ปีที่แล้ว

      Got the same error too

    • @newzealandroadster
      @newzealandroadster 3 ปีที่แล้ว

      delete the commas ( , ) on the top of 'AS'

  • @babypotatoplus5826
    @babypotatoplus5826 5 ปีที่แล้ว +1

    I am getting an error saying something along the lines of "Incorrect syntax near the word Table" in my query string. It did not let me name the table so it kept it as Table instead of tbl_Login

  • @levizjaperdije8499
    @levizjaperdije8499 6 ปีที่แล้ว +5

    this error occurs
    System.Data.SqlClient.SqlException: 'The request for procedure '' failed because '' is a table object.'

  • @ruvim2716
    @ruvim2716 5 ปีที่แล้ว

    Hey do you have a video on adding components to tool box? I tried adding but they don’t seem to show

  • @medmahdialitaleb8209
    @medmahdialitaleb8209 5 ปีที่แล้ว +2

    from where i can get the right side of the variable of connectionString please i need a help?

    • @kendakf5752
      @kendakf5752 3 ปีที่แล้ว

      EN-Select the data in the Server Explorer or right click on it and select Properties. In the Properties Window, the Connection String property to your database appears.
      SP-Seleccionas la de datos en el Explorador de Servidores o click derecho sobre ella y seleccionas Propiedades. En la Ventana de Propiedades aparece la propiedad Cadena de Conexión a su base de datos.

  • @DarkShadow-oh5di
    @DarkShadow-oh5di 5 ปีที่แล้ว

    In my scenario the username have to be unique...so Can I make it primary key or its possible with userID as primary key??

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว +1

      your choice. you can use id or username column.

    • @DarkShadow-oh5di
      @DarkShadow-oh5di 5 ปีที่แล้ว

      @@CodAffection oka thanks bro I appreciate that💕

  • @Howto-vo2sh
    @Howto-vo2sh 6 ปีที่แล้ว +1

    Hello!
    So thanks for your video. You did it very well but I have a problem. When I'm starting programme It's writing:
    System.Data.SqlClient.SqlException: 'Procedure or function 'UserAdd' expects parameter '@Id', which was not supplied
    If you answer I'll be happy!

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      still you have the problem?

    • @junix199
      @junix199 6 ปีที่แล้ว

      you forgot to remove @Id from the UserAdd procedure.

    • @shashankc21
      @shashankc21 4 ปีที่แล้ว

      @@CodAffection i faced same problem

  • @AlexMcTurk
    @AlexMcTurk 4 ปีที่แล้ว +1

    where do you get the connection string

    • @CodAffection
      @CodAffection  4 ปีที่แล้ว

      explained here: th-cam.com/video/WJ-CdeTGxp8/w-d-xo.html

  • @cyberdash7883
    @cyberdash7883 4 ปีที่แล้ว

    That's nice , i like but what if i want to add a sign in windows to this registration system ? ( i mean related to it and db ) how to do that ? could you please teach us ?

  • @truongnhutbui4835
    @truongnhutbui4835 5 ปีที่แล้ว

    its wonderful, thanks very very much

  • @junix199
    @junix199 6 ปีที่แล้ว +2

    Who has an error with ALTER, so, Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.

    • @konligjze2003
      @konligjze2003 5 ปีที่แล้ว +1

      yea i have this problem too...

  • @Daaboo
    @Daaboo 4 ปีที่แล้ว

    when i wanna see my data base with "Select * from UserAdd" + Execute in SQL i get "Msg 208, Level 16, State 3, Line 12
    Invalid object name 'UserAdd'." after you removed UserID and changed 'create' to 'Alter'
    any ideas why?

  • @kou5479
    @kou5479 5 ปีที่แล้ว +2

    where the hell that connection string came from??! 9:55

    • @antonioquiacain9451
      @antonioquiacain9451 5 ปีที่แล้ว

      go to your sql database, under properties look for connection string, you should find it there, just copy and paste it ;)

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      this video will help you to find out your db connection string : th-cam.com/video/WJ-CdeTGxp8/w-d-xo.html

  • @happygirl2406
    @happygirl2406 4 ปีที่แล้ว

    does the code helps with users cannot register duplicate account name?

  • @blaxzefl
    @blaxzefl 5 ปีที่แล้ว

    System.Data.SqlClient.SqlException: 'Could not find stored procedure 'UserAdd'.'

  • @AbdullahAhmed-ts7zc
    @AbdullahAhmed-ts7zc 3 ปีที่แล้ว +1

    Sql.con gives me error :(

  • @theboss4006
    @theboss4006 3 ปีที่แล้ว

    connecting the different data tables for each user how????? pls help

  • @jamessoy9616
    @jamessoy9616 2 ปีที่แล้ว

    Thank you once again for the lesson.
    I do have one issue in my program. How can I autofill the Primary and foreign keys in the registration form?
    I have the customer data going to the customer table and the user name and password going to the user login table.
    The Customer table is Customer_ID (Primary key), User_ID( Foreign key
    User Login table has User_ID (Primary key)
    Everything worked except I did not fill the ID columns on both tables and got a null error for the key columns
    Any suggestions?

    • @mitchell3088
      @mitchell3088 2 ปีที่แล้ว

      I also ran into this issue, let me know if you found a solution.

  • @jexxgaming1
    @jexxgaming1 2 ปีที่แล้ว

    Where do i download that sql?

  • @ragulm8676
    @ragulm8676 2 ปีที่แล้ว

    How to Solve this problem _ executenonquery connection property has not been initialized. c# in registration form

  • @กัณฑ์พงษ์ศรีสุธาภัทร์

    pls help me
    i don't understand why 'txt' and 'commandType' have error

  • @vanko2052
    @vanko2052 5 ปีที่แล้ว +3

    Show me "could not find stored procedure UserAdd"
    HELP ME!!!

    • @rachidnait
      @rachidnait 5 ปีที่แล้ว +1

      Delete UserAdd from database because you will not need it

  • @gilbertbentulan1694
    @gilbertbentulan1694 5 ปีที่แล้ว

    I have a questions after i have done doing those whole registration sign up from where is that next management trio you are saying? Is that another application or i remain in c#? Please answer the question thanks

  • @ralstinejaneigne3098
    @ralstinejaneigne3098 5 ปีที่แล้ว

    I cant change the name of my table and I have an error saying incorrect syntax near AS. Expecting VARIABLE.

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      still having this problem.

    • @ralstinejaneigne3098
      @ralstinejaneigne3098 5 ปีที่แล้ว

      @@CodAffection nah... i used other codes..thanks for the info though

    • @PrzemoGames
      @PrzemoGames 4 ปีที่แล้ว

      @@ralstinejaneigne3098 bro you must delete , next to password :)

  • @Anton-sz6ef
    @Anton-sz6ef 5 ปีที่แล้ว

    Thank you so much...!

  • @sbzalz4611
    @sbzalz4611 5 ปีที่แล้ว

    good day I have Q: I want to do a login form and register form do I do separate database or do separate table ?

    • @joshuaratcliff8554
      @joshuaratcliff8554 5 ปีที่แล้ว

      Login form would verify username/password is in the user table in a database, and register form would add a new user to the user table in the same database. Unless they are for two different systems, they would be associated with the same table in the same database.

    • @sbzalz4611
      @sbzalz4611 5 ปีที่แล้ว

      @@joshuaratcliff8554 Thank You
      ;)

  • @katharinamuller240
    @katharinamuller240 4 ปีที่แล้ว

    Thank you for your help. When I try to run the app, there's an error for @name_item in the line: sqlCmd.Parameters.AddWithValue(@name_item, stichwortTB.Text.Trim()); It says "the name 'name_item' doesn't exist in this context. It is however the parameter I used in the sql procedure. What can I do about it? Thank you for your help.

    • @de_Kazz
      @de_Kazz 3 ปีที่แล้ว

      Have you gotten any reply on this perhaps ?
      or answers..

    • @katharinamuller240
      @katharinamuller240 3 ปีที่แล้ว

      @@de_Kazz Unfortunately, nothing until now. I will have a closer look in the weeks to come, if I find out more.

  • @antonioquiacain9451
    @antonioquiacain9451 5 ปีที่แล้ว

    Hey! Could you please help me out?
    When trying to set parameters in sqlcmd.Parameters.AddWithValue("@FirstName",txtFirstName.Text.Trim());
    I get an error that says txtFirstName does not exist in the current context. How can I solve this? I would appreciate help from anyone!

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว +1

      make sure your writing this in code behind code of the same form where we have the first name text box. or you can download the demo source code from the download link and compare with yours.

    • @kshitijbali6915
      @kshitijbali6915 4 ปีที่แล้ว

      Make sure your text boxes are named txtFirstName and txtLastName etc etc

  • @chrispavas837
    @chrispavas837 6 ปีที่แล้ว

    I created the form on visual studio 2017, but I've never worked with Microsoft SQL sever management studio 17 and when I open the program, it asks me for a server type, server name and authentication.....Can you please help me?

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      try this th-cam.com/video/h7ImvYpfcUk/w-d-xo.html

  • @georgenze1956
    @georgenze1956 7 ปีที่แล้ว +4

    you did not show how you get the connection string

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      Detailed explanation on SQL Server connection string : th-cam.com/video/WJ-CdeTGxp8/w-d-xo.html

  • @ryanlesleykeyer9049
    @ryanlesleykeyer9049 6 ปีที่แล้ว

    i tried to do it but i can't change the Create Proc to Alter Proc SQL70001:This statement is not recognized in this context.

    • @junix199
      @junix199 6 ปีที่แล้ว

      Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.

  • @ginopornasdoro9183
    @ginopornasdoro9183 5 ปีที่แล้ว

    do you have version in mysql workbench?

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      yes, th-cam.com/video/O27jl60NvQc/w-d-xo.html

  • @newabyuser
    @newabyuser 6 ปีที่แล้ว +1

    awesome

  • @essics1462
    @essics1462 4 ปีที่แล้ว

    how to fix Msg 102, Level 15, State 1, Procedure UserAdd, Line 8 [Batch Start Line 0]
    Incorrect syntax near ','.

  • @AhmedRaza-ee7yk
    @AhmedRaza-ee7yk 6 ปีที่แล้ว +1

    plese make a video about how to update or delete registration form or signup form

  • @sadmankhan7585
    @sadmankhan7585 5 ปีที่แล้ว

    after that if we want to create user Log In, how to do that?????????

  • @SATACPR22
    @SATACPR22 2 ปีที่แล้ว

    thank u

  • @unxpected15
    @unxpected15 ปีที่แล้ว

    Where I can find Microsoft SQL server Management Studio?

    • @CodAffection
      @CodAffection  ปีที่แล้ว

      learn.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver16
      select the same version as that of your sql server from left top menu. ( > SQL Server > ...)

  • @GlitchToGaming
    @GlitchToGaming 3 ปีที่แล้ว

    How do you stop users from using existing username?

  • @abcdef_101
    @abcdef_101 4 ปีที่แล้ว

    Where and how to get that connection string?

    • @CodAffection
      @CodAffection  4 ปีที่แล้ว

      explained here: th-cam.com/video/WJ-CdeTGxp8/w-d-xo.html

  • @shekhnasim1541
    @shekhnasim1541 6 ปีที่แล้ว

    I use the process as you show in your video. but my User registration is not working. I think its because my sql server is not windows authentication its SQL server authentication. please help what should i do in that case?

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      try this : th-cam.com/video/WJ-CdeTGxp8/w-d-xo.html

  • @KingofShena
    @KingofShena 7 ปีที่แล้ว

    ive tried your code but the thing here is that.
    The password textbox cant read varchar password. so can you tell me what can i do about it.
    it always displays nvarchar can not be converted to int

    • @billymganda2504
      @billymganda2504 7 ปีที่แล้ว

      Try txtPassword.Password instead of txtPassword.Text under using (SqlConnection sqlcon = new SqlConnection(connectionstring))

  • @inzaiqbal1743
    @inzaiqbal1743 4 ปีที่แล้ว

    Please try to make your videos in urdu/hindi.. in that manner that would be so valuable....

  • @nurjimaradam2145
    @nurjimaradam2145 6 ปีที่แล้ว

    Sir can u make a Registration form connect to MyPhp not sql

  • @gokulnathr8045
    @gokulnathr8045 7 ปีที่แล้ว

    i want user register Form in c#windows Application using inheritance.Can you show that video?

  • @georgevetolavman
    @georgevetolavman 6 ปีที่แล้ว

    For some reason when i Run my program it cant find the stored procedure, any tips? (I followed guide closely)

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      please verify the stored procedure name.
      you can download project source code along with db description and then compare with your project.

    • @georgevetolavman
      @georgevetolavman 6 ปีที่แล้ว +1

      I figured it out, the problem was that the database that I was configuring was not the same one that was connected to my client. Thank you

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      thanks for commenting your solution it'll help others to fix their problem.

  • @sushilsampang8181
    @sushilsampang8181 6 ปีที่แล้ว

    After building this page how do I login to a certain page using this database ? can U please give the code for that ?

  • @gauravuniyal5870
    @gauravuniyal5870 6 ปีที่แล้ว

    Laaable !!!! really

  • @aniruddhasoni6491
    @aniruddhasoni6491 5 ปีที่แล้ว

    How to take connection string?

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      detail video is here : th-cam.com/video/WJ-CdeTGxp8/w-d-xo.html

    • @CodAffection
      @CodAffection  5 ปีที่แล้ว

      detail video is here : th-cam.com/video/WJ-CdeTGxp8/w-d-xo.html

  • @santhoshk4196
    @santhoshk4196 6 ปีที่แล้ว +1

    please do one video security based application using asp.net membership Registration, login and logout

    • @junix199
      @junix199 6 ปีที่แล้ว

      Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.

  • @bgrcomputersltd
    @bgrcomputersltd ปีที่แล้ว

    Error 26: Error Locating Server/Instace Specified Fix

  • @abdullahiaminu4840
    @abdullahiaminu4840 5 ปีที่แล้ว

    Hi, every one I wish u .................................................... best in all aspect of life.

  • @1234danik
    @1234danik 5 ปีที่แล้ว

    Hello, how to avoid duplicate usernames in database? Please help :)

  • @leahmacalipay5602
    @leahmacalipay5602 5 ปีที่แล้ว

    How can I resolve "System.Data.SqlClient.SqlException"?

    • @kendakf5752
      @kendakf5752 3 ปีที่แล้ว

      Make sure you had added "using System.Data.SqlClient" with the other libraries.

  • @TomMaczka
    @TomMaczka 6 ปีที่แล้ว

    Please could you do a video on how to create a role based login ? RBAC style login

  • @georgevetolavman
    @georgevetolavman 6 ปีที่แล้ว

    Hey DotnetMOB, Thank you for great guide! PLease can you show us how to make DAL/CONTROLLER. I want do make diz project with MVC

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      User Registration With MVC : th-cam.com/video/xBS9FMF2NFM/w-d-xo.html

  • @ZOUZOU5979
    @ZOUZOU5979 4 ปีที่แล้ว

    je t'aime

  • @V2traveller
    @V2traveller 7 ปีที่แล้ว

    Thanks for this video...Can u make ...one .net web page and show database connectivity using C# only.....and perform operation in database with sql server

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      with asp.net web form : th-cam.com/video/CsT1G3SmHXE/w-d-xo.html
      with asp.net mvc : th-cam.com/video/1IFS33sPDhE/w-d-xo.html

  • @angusmcalister593
    @angusmcalister593 7 ปีที่แล้ว

    Hi, if I wanted to use 'Email' instead of userid, what would it be on the Data Type?
    -Regards

    • @CodAffection
      @CodAffection  6 ปีที่แล้ว

      nvarchar or varchar would be enough.

  • @Ghoulz--
    @Ghoulz-- 7 ปีที่แล้ว

    how if we we want to register the username that already created, and we want to make a warn that username already taken? ty

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      Sorry for the late reply,
      You can warm user about duplicate user name inside btnSubmit Button Click Event
      1) Create StoredProcedure : CheckDuplicateUsername
      Input : username
      Output : 0 - No Duplicate 1 - Duplicate Found
      2) Call the StoredProcedure before saving the record - if result 1 show 'duplicate username' in a message box.

    • @Ghoulz--
      @Ghoulz-- 7 ปีที่แล้ว

      thanks for the reply. im still dont get how to make input output using data that in sql table. ty

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว +2

      1) Create a storeprocedure : CheckDuplicateUsername
      CREATE PROC CheckDuplicateUsername
      @UserName VARCHAR(100)
      AS
      IF EXISTS (SELECT * FROM tblUser where FirstName+' '+LastName = @UserName)
      SELECT 1
      ELSE
      SELECT 0
      2) Call this storeprocedure before save operation
      Pass FirstName+' +LastName to @UserName Parameter
      If it return 1 then there is a duplicate record - show warning message.

    • @Ghoulz--
      @Ghoulz-- 7 ปีที่แล้ว

      well thanks for the reply :)) goodluck, dotnet mob :) im c# beginner here hehe xd

    • @CodAffection
      @CodAffection  7 ปีที่แล้ว

      you are welcome :)

  • @АлексейБулай-и6л
    @АлексейБулай-и6л 4 ปีที่แล้ว

    👍👍👍👍

  • @inzaiqbal1743
    @inzaiqbal1743 4 ปีที่แล้ว

    It is tough to speak for you otherwise it is good overall but try to make it in urdu...

  • @FlexZone100
    @FlexZone100 4 ปีที่แล้ว

    Mic!

  • @erenkaleli6861
    @erenkaleli6861 2 ปีที่แล้ว

    DOND DELL ME WHAD DO DO

  • @度空-u5r
    @度空-u5r 4 ปีที่แล้ว

    咖喱味英语

  • @faridamammadova7707
    @faridamammadova7707 6 ปีที่แล้ว

    Hu

  • @aljaidiabdallah5358
    @aljaidiabdallah5358 3 ปีที่แล้ว

    Don't acting like amarican accent use your natural .

  • @metea.890
    @metea.890 4 ปีที่แล้ว

    System.Data.SqlClient.SqlException: 'Could not find stored procedure 'UserAdd'.'