Login Form in java using Netbeans and Sql Server

  Рет қаралды 157,819

Indra Subedi

Indra Subedi

Күн бұрын

Пікірлер: 158
@indrasubedi
@indrasubedi 6 жыл бұрын
Hello My Brothers and Sisters. My humble request to you, *Please* *Don't* *Forget* *To* *Subscribe* If you have any problem, Comment down. I will provide you solution as soon as possible.
@amandapanda3750
@amandapanda3750 3 жыл бұрын
Didn't do the exact same thing you did but I followed the basis of the video and it helped a lot!! You're a Life Saver! Thanks for the great content
@RiyaRaniEARCS
@RiyaRaniEARCS 4 жыл бұрын
Thanku so much ur video helped me alot i am trying many times to install but today ur video helped me
@gulan2008
@gulan2008 7 жыл бұрын
Dear Indra, Thank you very much. I solved my problems from your video instructions. Regards, Hamidi
@tianfattloke9066
@tianfattloke9066 6 жыл бұрын
Hi Indra. I am using Windows Authentication and put the JAR files into the libraries already, also putting the sqljdbc_auth.dll file into my System32 as i read the comments. But i still couldn't execute my program, with the error shown below. Error Pop-up Message: com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionID:.......... Error shown in netbeans: Mar 25, 2018 11:12:48 PM com.microsoft.sqlserver.jdbc.AuthenticationJNI WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path May i know how can i solve this?
@indrasubedi
@indrasubedi 6 жыл бұрын
kzbin.info/www/bejne/e5ezdmBjnbydfbs Watch this video from 1:56 If you get/donot get solution reply me
@tianfattloke9066
@tianfattloke9066 6 жыл бұрын
I have did everything according the video u have provided. But still same error i got
@indrasubedi
@indrasubedi 6 жыл бұрын
i will search on it. and let you know if i found the solution My request if possible try using sql server authentication.
@tianfattloke9066
@tianfattloke9066 6 жыл бұрын
Thank you. I have also tried to establish a server authentication by following the steps below. msdn.microsoft.com/en-us/library/aa337562(v=sql.105).aspx But then when i want to login using Server authentication, i was informed that i had established the connection but there is an error occured somehow. TITLE: Connect to Server ------------------------------ Cannot connect to LAPTOP-11F0IBL5. ------------------------------ ADDITIONAL INFORMATION: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) (Microsoft SQL Server, Error: 233)
@tianfattloke9066
@tianfattloke9066 6 жыл бұрын
Hi Indra. I have solved my problem. The link below shows the solution for Windows Authentication who might have the same problem as I do. Please refer to the first answer provided by Amine Soumiaa. stackoverflow.com/questions/11707056/no-sqljdbc-auth-in-java-library-path Hope this may help u too, Indra :D
@unycassama9728
@unycassama9728 7 жыл бұрын
thank you indra, i am using windows authentication, its giving an error. what should i do ? i have problem with: Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver.class");
@mrbotgaming6666
@mrbotgaming6666 3 жыл бұрын
really helpful sir 🙏🙏
@indrasubedi
@indrasubedi 3 жыл бұрын
Thanks for your feedback and dont forget to subscribe
@knightrulzzz
@knightrulzzz 6 жыл бұрын
Dude, thanks for the help !!! Awesome and helpful Video Clip! Keep It Up bro !! ;)
@indrasubedi
@indrasubedi 6 жыл бұрын
Thanks for your feedback.
@sukirtiarora3583
@sukirtiarora3583 7 жыл бұрын
Thank you very much for this tutorial. Being a beginner it totally helped me.
@emerald21576
@emerald21576 3 жыл бұрын
It's helped me more!!!!👍👍👍
@7-amrithaharidas832
@7-amrithaharidas832 7 жыл бұрын
Thank u for this tutorial . It was really helpful
@sipporatoppo1340
@sipporatoppo1340 6 жыл бұрын
Thank you for this video. It's really a very helpful.
@indrasubedi
@indrasubedi 6 жыл бұрын
Thanks for your feedback
@computerbolter4079
@computerbolter4079 6 жыл бұрын
Thanks Bro!!! It worked with sqlite manager by changing forname and url.
@aalamali6704
@aalamali6704 8 ай бұрын
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter this problem is shown in my terminal while login. Please suggest me a valid souliton
@TheDr.01
@TheDr.01 5 жыл бұрын
Amazing video bro, helped me out very quickly
@-indeed8285
@-indeed8285 7 жыл бұрын
good video...thanks ...keep making videos like this.
@indrasubedi
@indrasubedi 7 жыл бұрын
+M A K you can find more useful videos in my channel. And dont forget to subscribe
@gmrole1209
@gmrole1209 3 жыл бұрын
thank you, this is really helpful to me it works.
@devopstraining785
@devopstraining785 5 жыл бұрын
hi indra where i can find the source code that you pasted in signin action performed.....i downloaded the zip file from your blog but cant find it..please help!!
@KartikRathor
@KartikRathor 5 жыл бұрын
Showing error in no. Of parameters of pst.setString()
@rounakghosh7177
@rounakghosh7177 5 жыл бұрын
What will happen if we create a main class
@pacharapolballz4402
@pacharapolballz4402 7 жыл бұрын
From your clip I want you to teach the search. Search all data from table using "Text Field"
@pacharapolballz4402
@pacharapolballz4402 7 жыл бұрын
Thank you.
@indrasubedi
@indrasubedi 7 жыл бұрын
Thanks. I will upload it soon
@pacharapolballz4402
@pacharapolballz4402 7 жыл бұрын
ok i wait you upload
@pacharapolballz4402
@pacharapolballz4402 7 жыл бұрын
I have 4 days before sending. Thank you :)
@genesisc135
@genesisc135 7 жыл бұрын
Thanks for your video. Very helpful and simple
@isiahcharles6804
@isiahcharles6804 6 жыл бұрын
how do i solve the problem "com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'sa'. ClientConnectionID:21e0f682-39b9-4bab-9f78-b5483df3fae6" my authentication is windows authentication only, do I need to change it to SQL authentication?
@indrasubedi
@indrasubedi 6 жыл бұрын
Use the below code in the connection url. change the database as per your database name. String url="jdbc:sqlserver://localhost:1433;databaseName=testdb;integratedSecurity=true";
@nuzzy_nuz
@nuzzy_nuz 6 жыл бұрын
Thank You! It was helpful and allowed me to easily create the login
@indrasubedi
@indrasubedi 6 жыл бұрын
Thank you for your feedback
@Necklaceish
@Necklaceish 4 жыл бұрын
thank you indra subedi
@zerodigits2413
@zerodigits2413 4 жыл бұрын
I am facing an error can you help me fix it? here is the error.. com.microsoft.sqlserver.jdbc.SQLServerException: this driver is not configured for integrated authentication.
@munibmarwan
@munibmarwan 4 жыл бұрын
hi ! i wanna ask you something .. what is the different between SQL server Database and derby Database .. and which one is better .. and the last thing is can i do it with derby database in netbeans instead of SQL SERVER ? .. thank you all .
@sunnyaahil166
@sunnyaahil166 7 жыл бұрын
i am facing "com.microsoft.sqlserver.jdbc.SQLServerException".... how we solve?
@indrasubedi
@indrasubedi 7 жыл бұрын
There are two main reason to get this error. One is you have logged in with windows authentication. If so login with sql server authentication or replace above code with String url="jdbc:sqlserver://localhost:1433;databaseName=testdb;integratedSecurity=true"; be sure to include your database name Second is you have not enabled TCP connection. check the video properly from 8:34 .
@sunnyaahil166
@sunnyaahil166 7 жыл бұрын
my TCP connection is enabled....but i am logged in with using windows authentication
@indrasubedi
@indrasubedi 7 жыл бұрын
Ok. then you the above code
@sunnyaahil166
@sunnyaahil166 7 жыл бұрын
still error
@sunnyaahil166
@sunnyaahil166 7 жыл бұрын
check your email... i sent you my code and error screenshot
@SweetPrince-123
@SweetPrince-123 7 жыл бұрын
thanks indra, however i ahve import the sql jar file but still saying ..........java-lang-classnotfoundexceptioncom-mysql-jdbc-driver when i press signin..... please what can i do next to solve it
@indrasubedi
@indrasubedi 7 жыл бұрын
+Prince please be sure that you have used sql jar file because the error says that you have used mysql jar file. Also the video uses sql server authentication. If you are using windows server authentication, Use the below code in the connection url. change the database as per your database name. String url="jdbc:sqlserver://localhost:1433;databaseName=testdb;integratedSecurity=true";
@franciscoleonelruizgutierr8707
@franciscoleonelruizgutierr8707 6 жыл бұрын
Hi, i have a question, Where is the link for the jar ? i dont found in your description :(
@franciscoleonelruizgutierr8707
@franciscoleonelruizgutierr8707 6 жыл бұрын
www.microsoft.com/en-us/download/details.aspx?id=11774 this is the jar link and choose with extension tar.gz
@shazidmorshed1889
@shazidmorshed1889 5 жыл бұрын
bro..i have a question here...where did you used the password orchid in sql ??? if you could tell me then it will be very helpful :)
@sofiyamariyanova8129
@sofiyamariyanova8129 7 жыл бұрын
Thank you so much! Amazing tutorial!! :)
@danielgorry5565
@danielgorry5565 7 жыл бұрын
can you paste the try() code that you used in the authentication step here please
@tomiturner5523
@tomiturner5523 7 жыл бұрын
Yes; please paste the codes used
@stepankonsel5584
@stepankonsel5584 6 жыл бұрын
hi bro, i have a problem at :com.microsoft.sqlserver.jdbc.SQLServerExeception: The method executeQuery() cannpt take arguments on a PreparedStatement or CallableStatement
@stepankonsel5584
@stepankonsel5584 6 жыл бұрын
do u know why? I have exactly the same code like u......
@indrasubedi
@indrasubedi 6 жыл бұрын
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); String url="jdbc:sqlserver://localhost:1433;databaseName=testdb;user=sa;password=orchid"; Connection con = DriverManager.getConnection(url); String sql = "Select * from test where username=? and password = ?"; PreparedStatement pst = con.prepareStatement(sql); pst.setString(1, username.getText()); pst.setString(2, password.getText()); ResultSet rs = pst.executeQuery(); if(rs.next()){ JOptionPane.showMessageDialog(null, "Username and Password Matched"); Check whether your code matches this code except database name, table name, username and password
@karim-10
@karim-10 6 жыл бұрын
I wanna Link To Make Form Insert Update delate System to Java and SQL server Plz Tel me if you Can Bro Thnx
@indrasubedi
@indrasubedi 6 жыл бұрын
Please watch my video playlist. You could find all the related videos there
@prasantabis
@prasantabis 3 жыл бұрын
Where I get import.java.sql.connection, I am not getting that thing.
@ahmadmaulana235
@ahmadmaulana235 5 жыл бұрын
Thank you very much for this tutorial
@racionator2668
@racionator2668 4 жыл бұрын
Keeping passwords as varchar is not a great idea, but for demo purpose its ok !!!
@princephilipmabesa213
@princephilipmabesa213 7 жыл бұрын
im new to java, im having an error in Class.forName, i just actually copied all the code inside Class.forName (" "), can u help me?
@indrasubedi
@indrasubedi 7 жыл бұрын
Please send me the code that you have done in indrasubedi95@gmail.com
@softus8453
@softus8453 7 жыл бұрын
hey dear i get this error and i dont why ? i just make sql authentication and give my db my pass but after i put it i received this error:com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near the keyword 'user'.
@softus8453
@softus8453 7 жыл бұрын
so how i can fix it ,i used netbeans 8.2 and sqlserver 2016
@gergoo007_
@gergoo007_ 6 жыл бұрын
Keep it up! This is very helpful!
@indrasubedi
@indrasubedi 6 жыл бұрын
Thank you
@globalnavigator
@globalnavigator 7 жыл бұрын
How to connect the Java form with Oracle Database for instance 11g?
@indrasubedi
@indrasubedi 7 жыл бұрын
You need a JDBC Driver to be imported in the library of your project. This is the link for download. www.oracle.com/technetwork/database/application-development/index-099369.html Also adjust the following code as per your project. try { String dbURL = "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=whatEverYourHostNameIs)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=yourServiceName)))"; String strUserID = "yourUserId"; String strPassword = "yourPassword"; Connection myConnection=DriverManager.getConnection(dbURL,strUserID,strPassword); Statement sqlStatement = myConnection.createStatement(); String readRecordSQL = "select * from sa_work_order where WORK_ORDER_NO = '1503090' "; ResultSet myResultSet = sqlStatement.executeQuery(readRecordSQL); while (myResultSet.next()) { System.out.println("Record values: " + myResultSet.getString("WORK_ORDER_NO")); } myResultSet.close(); myConnection.close(); } catch (Exception e) { System.out.println(e); }
@AzizjanAyupov_leo
@AzizjanAyupov_leo 7 жыл бұрын
Thank you very much! But I wanna give you advice: speak more clearly or at last slowly :)
@indrasubedi
@indrasubedi 7 жыл бұрын
+Azizjan Ayupov Thank you I appreciate your feedback. Will make changes in the upcomming videos
@XxGummib3arxX
@XxGummib3arxX 8 жыл бұрын
When I tried to use SQLServer Authentication it did not work, but When I used windows authentication it works, is there a difference?.
@indrasubedi
@indrasubedi 8 жыл бұрын
Definitely there is a difference in security. If you are using your personal computer, it doesn't matter in using windows authentication.But in case you want to authenticate the users against set of users available in your application database, then in that case you will want to go for SQL Authentication.
@XxGummib3arxX
@XxGummib3arxX 8 жыл бұрын
Also for string url, what do I type im pretty sure its not the same as yours. and can i get a copy and paste for the code as well in the beginning.
@indrasubedi
@indrasubedi 8 жыл бұрын
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver"); String url="jdbc:sqlserver://localhost:1433;databaseName=testdb;user=sa;password=orchid"; Connection con = DriverManager.getConnection(url); //This is for sql server authentication, for windows server you have to modify
@anushamathew1916
@anushamathew1916 5 жыл бұрын
Could not find or load main class what it mean sir ? What are we supposed to do
@indrasubedi
@indrasubedi 5 жыл бұрын
While creating project uncheck the create main class selection
@nancyagrawal5819
@nancyagrawal5819 7 жыл бұрын
Hello Sir when I downloaded the sql connector, it is in .txt format. And when I try to add it in library it is not showing in the list. What should I do?
@indrasubedi
@indrasubedi 7 жыл бұрын
+Nancy Agrawal There are different format to download. Choose zip or rar file and download
@firdausazad9759
@firdausazad9759 4 жыл бұрын
where did user=sa and password=orchid come?
@jordansantos3993
@jordansantos3993 7 жыл бұрын
can you reply me the code you use in button? thanks :) . its hard for me to read and type it with my poor eyevisbility :(
@ravikiran3763
@ravikiran3763 6 жыл бұрын
bro i want some code for "current login details to show next page without using database" please rply bro as soon as possible
@LalGebi
@LalGebi 7 жыл бұрын
Great.. Please make more videos ... GOD bless you.. I have little doubt .. if you can answer.. we needed to authenticate users credential against the database credential and not the separate database where credentials are merely data of table...How one can create code for that..? pl. anybody out there to comment
@elmakaouinassima6910
@elmakaouinassima6910 7 жыл бұрын
when i used easyphp , i could'nt connect database
@loginid7108
@loginid7108 7 жыл бұрын
Do you have the same Program / Login Page GUI with MySQL database. ?????
@indrasubedi
@indrasubedi 7 жыл бұрын
+Dev S yes find it on my video list
@jacquesngouabe7746
@jacquesngouabe7746 6 жыл бұрын
hello Sir i saw your tuto and it is very well made but i'm one thin that i don't get i'm working with NetBeans Build-in DataBase so how can i get the Class.ForName(" ") ? help me please
@minbogati3342
@minbogati3342 6 жыл бұрын
Good job keep it up...
@gnaneditz
@gnaneditz 7 жыл бұрын
How did you gave password as orchid
@indrasubedi
@indrasubedi 7 жыл бұрын
its an authentication password for sql server management studio
@sumanmandal3569
@sumanmandal3569 7 жыл бұрын
I have my sql server management with windows authentication.so what to give as user and password? where you have used user as "sa" and password as "orchid".
@NadaALbahri95
@NadaALbahri95 6 жыл бұрын
SUMAN MANDAL I have the same question
@wasimabbaci6567
@wasimabbaci6567 6 жыл бұрын
@@sumanmandal3569 SELECT CURRENT_USER; to find user
@erosexclu4578
@erosexclu4578 7 жыл бұрын
can you attach the codes you used? thanks
@prasantabis
@prasantabis 3 жыл бұрын
Where I will import.com.sql.connection
@RaghunathTambde
@RaghunathTambde 3 ай бұрын
Instead of setting the 1st form as false for visibility shouldn't we close it 🤔
@indrasubedi
@indrasubedi 3 ай бұрын
You can.
@indrasubedi
@indrasubedi 3 ай бұрын
You can.
@codingwithjava7297
@codingwithjava7297 4 жыл бұрын
Bhai drag and drop mt use kia kro please 🙏🙏 Jb kuchh sikhana h to step by step sikhe
@benedictfaustino5705
@benedictfaustino5705 8 жыл бұрын
it shows java-lang-classnotfoundexceptioncom-mysql-jdbc-driver when i press signin
@indrasubedi
@indrasubedi 8 жыл бұрын
+Benedict Faustino Please import sql jar file to solve this problem. You can download it from: www.microsoft.com/en-us/download/details.aspx?id=11774 If you still get the error, email me at indrasubedi95@gmail.com
@benedictfaustino5705
@benedictfaustino5705 8 жыл бұрын
how to import
@indrasubedi
@indrasubedi 8 жыл бұрын
Watch the video from 7:28
@WithPray
@WithPray 5 жыл бұрын
Not working for me. Did everything like you.
@Rohan-dz4cd
@Rohan-dz4cd 7 жыл бұрын
can u provide source codes along with the videos....it would be really helpful.
@dylandtoledano4261
@dylandtoledano4261 7 жыл бұрын
I had an error, is this "Exception in thread "main" com.microsoft.sqlserver.jdbc.SQLServerException: Error de inicio de sesión del usuario 'sa'. ClientConnectionId:205dc5b0-4c8f-4d73-b956-867e2db10694" Do you have the solution?
@indrasubedi
@indrasubedi 7 жыл бұрын
+dyland Toledano which authentication havd you used? sql server authentication or windows server?
@dylandtoledano4261
@dylandtoledano4261 7 жыл бұрын
I use the Windows autentication
@indrasubedi
@indrasubedi 7 жыл бұрын
Use the below code in the connection url. change the database as per your database name. String url="jdbc:sqlserver://localhost:1433;databaseName=testdb;integratedSecurity=true";
@surajnagpure4445
@surajnagpure4445 6 жыл бұрын
PLEASE GIVE ME SOURCE CODE OF THIS PROGRAM
@almasbegum3988
@almasbegum3988 4 жыл бұрын
Can u send the code
@DavidArangosoychon
@DavidArangosoychon 6 жыл бұрын
seria de grandisima ayuda que tambien podamos copiar ese codigo el del logeo amigo
@gowthamprasath361
@gowthamprasath361 7 жыл бұрын
it doesn't checks whether the password in caps or not
@indrasubedi
@indrasubedi 7 жыл бұрын
+Anonymous For case sensitive password, you have to add alittle code
@healthsecret9416
@healthsecret9416 6 жыл бұрын
where is code
@computerbolter4079
@computerbolter4079 6 жыл бұрын
Bhai aapka microsoft sql server ka download link milega plz.
@indrasubedi
@indrasubedi 6 жыл бұрын
You Can watch my video for the step by step download and installation at here: kzbin.info/www/bejne/fn-weIiuq7Jnfs0 Downlaod link is : www.microsoft.com/en-us/download/details.aspx?id=29062
@waqastufail6105
@waqastufail6105 6 жыл бұрын
JAR file link please?
@indrasubedi
@indrasubedi 6 жыл бұрын
Find it on the description of this video
@riyakhan6491
@riyakhan6491 6 жыл бұрын
Please give the source code
@indrasubedi
@indrasubedi 6 жыл бұрын
Please find it on javaguiapp.blogspot.com
@polojoy6824
@polojoy6824 5 жыл бұрын
ok thank q so much
@InduwaraJ
@InduwaraJ 7 жыл бұрын
great
@indrasubedi
@indrasubedi 7 жыл бұрын
Thanks. Please subscribe for more videos.
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
how did u given the login name as "sa" and password:*********.
@indrasubedi
@indrasubedi 7 жыл бұрын
+krishna chaitanya you can create multiple users in sql server.if you cofused you can find video to create user in sql
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
how in any of the video they are not showing how to create that login and password
@indrasubedi
@indrasubedi 7 жыл бұрын
+krishna chaitanya search how to create user in sql server management studio
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
how to did u create the server name as HOME\SQLEXPRESS and login and password
@krishnachaitanya2522
@krishnachaitanya2522 7 жыл бұрын
ya ok i have got it thank u
@belkheirfatiha3226
@belkheirfatiha3226 6 жыл бұрын
thank you so mutch
@duaabatool3634
@duaabatool3634 5 жыл бұрын
Thankyou so much :) bless you :)
@duvancaballeroa3297
@duvancaballeroa3297 6 жыл бұрын
PORQUE HABLAS EN ESE INGLES MAL HABLADO SI LA DESCRIPCION Y TITULO DEL VIDEO ES EN ESPAÑOL XD XD
@indrasubedi
@indrasubedi 6 жыл бұрын
como se llama el titulo en español enviame
@duvancaballeroa3297
@duvancaballeroa3297 6 жыл бұрын
@@indrasubedi Formulario de inicio de sesión en Java usando Netbeans y Sql Server ??? necesito tu video en español :(
@zimmeruda
@zimmeruda 6 жыл бұрын
@@duvancaballeroa3297 Habla asi porque es el acento que tienen en la India, no es que hable mal
@bycecoconut1188
@bycecoconut1188 7 жыл бұрын
I need a search code. help me ;'(
@indrasubedi
@indrasubedi 7 жыл бұрын
I will upload it at night. If i provide you the code, you wont understand. So please be updated with my project. I will add in this project.
@bycecoconut1188
@bycecoconut1188 7 жыл бұрын
Thank you Indra :)
@abdirashiddahirahmed484
@abdirashiddahirahmed484 7 жыл бұрын
Java Application with jasper report
@sayuogiwara632
@sayuogiwara632 3 жыл бұрын
Thank you:3
Insert data into SQL server using java Part -1
9:21
Indra Subedi
Рет қаралды 85 М.
Insert data into SQL server using java Part -2
15:34
Indra Subedi
Рет қаралды 61 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
How To Use Cursor AI COMPLETELY FOR FREE
6:53
Income stream surfers
Рет қаралды 5 М.
Display data from SQL database into jtable in java
22:18
Indra Subedi
Рет қаралды 316 М.
Agreement with the U.S. / Ukraine’s Statement on Ending the War
13:26
Every Minute One Person Is Eliminated
34:46
MrBeast
Рет қаралды 46 МЛН
How to Create Form Login in Java Netbeans
10:09
ViMan
Рет қаралды 169 М.
Samsung Galaxy S25 Ultra VS S24 Ultra VS S23 Ultra
6:16
Spec Check
Рет қаралды 310 М.