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 :
@p1ntos4 жыл бұрын
VERY USEFUL VIDEO EVEN IN 2020, Thanks!
@OriginalTubester7 жыл бұрын
I followed through and this video helped loads, thank you.
@nsanerydah4 жыл бұрын
Great job. Very easy to understand. Keep up the good work Sir!
@type-1civilization5275 жыл бұрын
OMG, you really helped me, thanks!😉
@bienvinidolibre37232 жыл бұрын
thank you.. for the video have a good day.. brother.
@shovikanand32143 жыл бұрын
Great teaching.. Thanks
@benjamintenhove5826 жыл бұрын
Verry nice video!! Thanks a lot
@rajim1480 Жыл бұрын
Thanks for Your kind efforts. It's easily understandable as i am a new learner. God Bless You.
@CodAffection Жыл бұрын
Glad to hear that
@thayalinimuththiah70117 жыл бұрын
Thank you very much. I used This instruction to Create WPf form.
@Hitury4 жыл бұрын
Does any changes to the database apply for other people using my program?
@j_merc5 жыл бұрын
At 9:56 what is that connection string? Where did it come from?
@bluesilhouette67485 жыл бұрын
kzbin.info/www/bejne/sKTSo6Rng9iViqM watch this
@bluesilhouette67485 жыл бұрын
The setup may be different based on what database you r using like MySQL or access
@harikrishnants85454 жыл бұрын
ERROR Found: System.Data.SqlClient.SqlException: 'Procedure or function 'addreg' expects parameter '@id', which was not supplied.'
@TIAGO5432115 жыл бұрын
may god bless you, you are the better one!!
@CodAffection5 жыл бұрын
thanks for your wonderful feedback.
@danairmagonzalezmachorro97632 жыл бұрын
Thamk you so much!
@truongnhutbui48356 жыл бұрын
its wonderful, thanks very very much
@yusraelahi98776 жыл бұрын
best teaching method i like it very much please share more videos with simple and easy way us
@CodAffection6 жыл бұрын
thanks for your wonderful feedback.
@shivanis34313 жыл бұрын
can u please tell me why you have used storeprocedure
@danielsaxlind50525 жыл бұрын
Any suggestion on what to do if u dont want to have the possiblite to add accounts with same Username ?
@kou54795 жыл бұрын
where the hell that connection string came from??! 9:55
@antonioquiacain94515 жыл бұрын
go to your sql database, under properties look for connection string, you should find it there, just copy and paste it ;)
@CodAffection5 жыл бұрын
this video will help you to find out your db connection string : kzbin.info/www/bejne/jXuQdJebiayrppo
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.
@konligjze20036 жыл бұрын
yea i have this problem too...
@angrysunshinebandit51144 жыл бұрын
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
@bobmichell40884 жыл бұрын
Did you ever find the answer
@angrysunshinebandit51144 жыл бұрын
@@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
@medmahdialitaleb82095 жыл бұрын
from where i can get the right side of the variable of connectionString please i need a help?
@kendakf57523 жыл бұрын
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.
@happygirl24064 жыл бұрын
does the code helps with users cannot register duplicate account name?
@euginebryansoncadiz18345 жыл бұрын
Theres an error when executing the store procedure "Msg 156, Level 15, State 1, Procedure UserAdd, Line 9 Incorrect syntax near the keyword 'AS'."
@thebenzc2003 жыл бұрын
Got the same error too
@newzealandroadster3 жыл бұрын
delete the commas ( , ) on the top of 'AS'
@levizjaperdije84996 жыл бұрын
this error occurs System.Data.SqlClient.SqlException: 'The request for procedure '' failed because '' is a table object.'
@doguhanyangoz57436 жыл бұрын
you should type so dbo. [ Table Name]
@AbdullahAhmed-ts7zc3 жыл бұрын
Sql.con gives me error :(
@ruvim27165 жыл бұрын
Hey do you have a video on adding components to tool box? I tried adding but they don’t seem to show
@vanko20525 жыл бұрын
Show me "could not find stored procedure UserAdd" HELP ME!!!
@rachidnait5 жыл бұрын
Delete UserAdd from database because you will not need it
@jexxgaming12 жыл бұрын
Where do i download that sql?
@DarkShadow-oh5di5 жыл бұрын
In my scenario the username have to be unique...so Can I make it primary key or its possible with userID as primary key??
@CodAffection5 жыл бұрын
your choice. you can use id or username column.
@DarkShadow-oh5di5 жыл бұрын
@@CodAffection oka thanks bro I appreciate that💕
@ginopornasdoro91835 жыл бұрын
do you have version in mysql workbench?
@CodAffection5 жыл бұрын
yes, kzbin.info/www/bejne/hWOam59sZbOph8U
@ragulm86762 жыл бұрын
How to Solve this problem _ executenonquery connection property has not been initialized. c# in registration form
@SATACPR222 жыл бұрын
thank u
@AhmedRaza-ee7yk6 жыл бұрын
plese make a video about how to update or delete registration form or signup form
@theboss40063 жыл бұрын
connecting the different data tables for each user how????? pls help
@cyberdash78834 жыл бұрын
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 ?
@blaxzefl5 жыл бұрын
System.Data.SqlClient.SqlException: 'Could not find stored procedure 'UserAdd'.'
@Daaboo4 жыл бұрын
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?
@gilbertbentulan16945 жыл бұрын
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
@CodAffection5 жыл бұрын
management trio ?
@กัณฑ์พงษ์ศรีสุธาภัทร์5 жыл бұрын
pls help me i don't understand why 'txt' and 'commandType' have error
@sbzalz46115 жыл бұрын
good day I have Q: I want to do a login form and register form do I do separate database or do separate table ?
@joshuaratcliff85545 жыл бұрын
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.
@sbzalz46115 жыл бұрын
@@joshuaratcliff8554 Thank You ;)
@Howto-vo2sh6 жыл бұрын
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!
@CodAffection6 жыл бұрын
still you have the problem?
@junix1996 жыл бұрын
you forgot to remove @Id from the UserAdd procedure.
@shashankc214 жыл бұрын
@@CodAffection i faced same problem
@babypotatoplus58265 жыл бұрын
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
after that if we want to create user Log In, how to do that?????????
@gokulnathr80457 жыл бұрын
i want user register Form in c#windows Application using inheritance.Can you show that video?
@ralstinejaneigne30985 жыл бұрын
I cant change the name of my table and I have an error saying incorrect syntax near AS. Expecting VARIABLE.
@CodAffection5 жыл бұрын
still having this problem.
@ralstinejaneigne30985 жыл бұрын
@@CodAffection nah... i used other codes..thanks for the info though
@PrzemoGames5 жыл бұрын
@@ralstinejaneigne3098 bro you must delete , next to password :)
@jamessoy96162 жыл бұрын
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?
@mitchell30882 жыл бұрын
I also ran into this issue, let me know if you found a solution.
@georgenze19567 жыл бұрын
you did not show how you get the connection string
@CodAffection7 жыл бұрын
Detailed explanation on SQL Server connection string : kzbin.info/www/bejne/jXuQdJebiayrppo
@chrispavas8376 жыл бұрын
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?
@CodAffection6 жыл бұрын
try this kzbin.info/www/bejne/nmisnqmPpcuWi80
@unxpected15 Жыл бұрын
Where I can find Microsoft SQL server Management Studio?
@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 > ...)
@ryanlesleykeyer90496 жыл бұрын
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.
@junix1996 жыл бұрын
Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.
@newabyuser6 жыл бұрын
awesome
@GlitchToGaming3 жыл бұрын
How do you stop users from using existing username?
@shekhnasim15416 жыл бұрын
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?
@CodAffection6 жыл бұрын
try this : kzbin.info/www/bejne/jXuQdJebiayrppo
@sushilsampang81816 жыл бұрын
After building this page how do I login to a certain page using this database ? can U please give the code for that ?
@mubinonelove6 жыл бұрын
Yes plz tell me als
@katharinamuller2404 жыл бұрын
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_Kazz3 жыл бұрын
Have you gotten any reply on this perhaps ? or answers..
@katharinamuller2403 жыл бұрын
@@de_Kazz Unfortunately, nothing until now. I will have a closer look in the weeks to come, if I find out more.
@nurjimaradam21457 жыл бұрын
Sir can u make a Registration form connect to MyPhp not sql
@aniruddhasoni64915 жыл бұрын
How to take connection string?
@CodAffection5 жыл бұрын
detail video is here : kzbin.info/www/bejne/jXuQdJebiayrppo
@CodAffection5 жыл бұрын
detail video is here : kzbin.info/www/bejne/jXuQdJebiayrppo
@santhoshk41966 жыл бұрын
please do one video security based application using asp.net membership Registration, login and logout
@junix1996 жыл бұрын
Just don't change. Leave as it was (CREATE). In new versions of visual studio Alter doesn't work this is all done automatically.
@essics14624 жыл бұрын
how to fix Msg 102, Level 15, State 1, Procedure UserAdd, Line 8 [Batch Start Line 0] Incorrect syntax near ','.
@KingofShena7 жыл бұрын
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
@billymganda25047 жыл бұрын
Try txtPassword.Password instead of txtPassword.Text under using (SqlConnection sqlcon = new SqlConnection(connectionstring))
@antonioquiacain94515 жыл бұрын
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!
@CodAffection5 жыл бұрын
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.
@kshitijbali69155 жыл бұрын
Make sure your text boxes are named txtFirstName and txtLastName etc etc
@inzaiqbal17434 жыл бұрын
Please try to make your videos in urdu/hindi.. in that manner that would be so valuable....
@abdullahiaminu48405 жыл бұрын
Hi, every one I wish u .................................................... best in all aspect of life.
@georgevetolavman6 жыл бұрын
For some reason when i Run my program it cant find the stored procedure, any tips? (I followed guide closely)
@CodAffection6 жыл бұрын
please verify the stored procedure name. you can download project source code along with db description and then compare with your project.
@georgevetolavman6 жыл бұрын
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
@CodAffection6 жыл бұрын
thanks for commenting your solution it'll help others to fix their problem.
@1234danik5 жыл бұрын
Hello, how to avoid duplicate usernames in database? Please help :)
@V2traveller7 жыл бұрын
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
@CodAffection7 жыл бұрын
with asp.net web form : kzbin.info/www/bejne/eaS3YnppiNJ7jqc with asp.net mvc : kzbin.info/www/bejne/Z3qphGZpqLV3nqc
@АлексейБулай-и6л4 жыл бұрын
👍👍👍👍
@georgevetolavman6 жыл бұрын
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
@CodAffection6 жыл бұрын
User Registration With MVC : kzbin.info/www/bejne/rnO2anmDe5eBfK8
@leahmacalipay56025 жыл бұрын
How can I resolve "System.Data.SqlClient.SqlException"?
@kendakf57523 жыл бұрын
Make sure you had added "using System.Data.SqlClient" with the other libraries.
Hi, if I wanted to use 'Email' instead of userid, what would it be on the Data Type? -Regards
@CodAffection7 жыл бұрын
nvarchar or varchar would be enough.
@TomMaczka6 жыл бұрын
Please could you do a video on how to create a role based login ? RBAC style login
@inzaiqbal17434 жыл бұрын
It is tough to speak for you otherwise it is good overall but try to make it in urdu...
@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
@CodAffection7 жыл бұрын
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--7 жыл бұрын
thanks for the reply. im still dont get how to make input output using data that in sql table. ty
@CodAffection7 жыл бұрын
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--7 жыл бұрын
well thanks for the reply :)) goodluck, dotnet mob :) im c# beginner here hehe xd
@CodAffection7 жыл бұрын
you are welcome :)
@FlexZone1004 жыл бұрын
Mic!
@erenkaleli68612 жыл бұрын
DOND DELL ME WHAD DO DO
@度空-u5r4 жыл бұрын
咖喱味英语
@faridamammadova77076 жыл бұрын
Hu
@aljaidiabdallah53583 жыл бұрын
Don't acting like amarican accent use your natural .
@metea.8904 жыл бұрын
System.Data.SqlClient.SqlException: 'Could not find stored procedure 'UserAdd'.'