Insert data into SQL server using java Part -2
Vložit
- čas přidán 21. 02. 2017
- Insert Data into SQL Database with Netbeans | Insert data in SQL from TextField, RadioButton, CheckBox, ComboBox using Netbeans | insert data java
For Part 1 : • Insert data into SQL s...
Channel Subscription : goo.gl/FZrbXg
Affilate: amzn.to/2DPwG8d
Find all the videos in the playlist: • Java programming train...
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.
provide the source code of insert data
Thanks Bro!!! Really Helped.
Indra ... Thanks a lot. Mr INDRA, you are really so genuine person. You are one of the most understandable lectures in the world... or educators. Again so thanks. Apart from that, I was creating Mini-system softwarwe , I decided to flow your way of developing systems. During building of my system .... Form's Table is not running or compiling, when I put the name of table under IniComponent, but your it fantastically InitComponent working. INDRA , please help me as to solve that problem.
thank you very much... you are amazing. it help me a lot to start my project.
Thanks for your feedback
tnks a lot sir..its worked fr me..
MANY THANKS, U SAVED MY DAY!
Ok thanks
Thanks for your feedback
You're the BEST!
Glad to hear your feedback
Hi Indra,
Love your videos. Followed your tutorial here, but when i click save I get the following error message in the console:
"Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver has been compiled by a more recent version of the Java Runtime (class file version 53.0), this version of the Java Runtime only recognizes class file versions up to 52.0"
I'm using jre9.jar. Any idea why this would be happening.
Thank you so much.
Thanks for your feedback
I use mysql 3306 from web site not the program u use and i have error in sql syntax what should i doo
Hi, I do the same like you for the check box, but it only save the last box i tick. May i know why it happens? Thank you
Nice videos.
THANKS YOU BRO REALLY!!!!
I am trying to connect my java application with database to insert data with my application but it shows Run-time error of "Package Import Java SQL doesn't exists". I already defined at the top....
Thankyou so much
Thanks for the feedback
Thank you bro
Thank you:33
thank you for the sharing. it help me alot. so how can i retrieve it back to the form as checkbox is check from DB thank you
thank you so much
h bro
Thanks for the feedback
it worked ty :P
+Waqar Wahid Thanks for your feedback
thank u Bhai
Thanks for your feedback
thanks bro
thanks man
Thank you soo much
Glad it helped!
شكرآ
I am always getting an error for using combobox. It says that the value is not set for parameter 4. In parameter 4 I have used jcombobox.
Please kindly help me.
i am having a problem please reply. when i pressed gender option which is male or female it inserted data even if i not put data on other boxes. why is that.please help
if we open netbeans again will same functions work again?
Can you give us tutorial how to add images to SQL server from netbeans
You will have that video soon.
Please make it with jsp, servlet with mssql for CRUD
Tnx bro
my desktop application is not still connecting to the database even after creating admin console and pinging
what should i do
Which authentication mode are you using in sql server?
Administrator
tnx so much ...It is working well now
how do you deploy desktop application
Hey bro i did the same u did ...but the code is not working yet...plzz help
hello,
i want to know the logincheck.java code also can you provide me.
Where did u get the try catch code? And you didnt show when you made the LoginCheck.java
Watch my previous video
when we use the DataType int than what use in query where we use " ? " in the query?
Find help form here:
stackoverflow.com/questions/14742246/inserting-numeric-data-type-using-sql-statement-in-java
when i press ok java.lang class not found com.microsoft.sqlserver.jdbc.SQLServerDriver
Have you download and use java ans sql server connector?
yes its 4.0 jdbc
n im using netbeans 7.2
connection test was succesful
how u did auto increment of sno.?
Its done from the database. When user enters data to database the value increments automatically while saving new record. You can do this by making identity specification to yes.
Thanks for the video, can you please help me with a few things? whats the best way to contact you? thanks
Why does" sno doesn't have default value" error mean
Jpassfiled ke liye kya java SQL code likhu bro
after I click save button it shows a message which says "The index 1 is out of range"
what should I do?
Be sure to check what size of data value you are going to insert in database. If the error continue mail me your code at indrasubedi95@gmail.com
I fixed it, thanks for replying
I forgot to add placeholders :))
can u help me, I have same trouble..
if we give null values also it will get stored in database
You need to validate all the textfield and related field. For the concept to validate watch this:
czcams.com/video/wZQc1Nct0-s/video.html
@@indrasubedi tanq bro
how we reset check button....when click on reset automatically uncheck the all check button...
For Checkbox use:
coreJava.setSelected(false);
python.setSelected(false)
ok thnkx
where is the event handling of save????
Mr. Indra, how do i solve the " invalid column name 'name' " ??
It means that the COLUMN Name mentioned in the sql is not matching with the table ( Tables that are mentioned after FROM clause ) columns.
Try:
Check your sql , you might have mis spelled the column name.
You might have wrongly tagged the table alias with the column.
Or you have written a wrong column name that doesn't corresponds to the table.
Thankyou Mr Indra!!
but how about the incorrect syntax near the keyword 'user'.
I promise i did your step in the video from the login to the part 2 and there is still an error in my program.
@@isiahcharles6804 send me your code on indrasubedi95@gmail.com
@@indrasubedi Okay mr indra
canot find symbol gender what to do ?
Watch from 4:20 . you havent declare String variable gender
Thanks Alot
Laptop keyboard ASMR
Is there any way to remove any wrong entry form the database?
Yes there is. You need to update the data or delete the data. For update and delete you can find the video in my playlist.
What is syntax for int value
Like pst.setString(1,name.getText());
pst.setInt(2, Integer.valueOf(price.getText()));
its not working
in radio button code it show "male is not resolved as a variable" help me plz
Did you declare string variable for gender? Also the radio button name should be male and female.
Indra Subedi yes i declare
Send me your code on indrasubedi95@gmail.com
Indra Subedi i was send my code plz give me solution
Check your mail
There is no error but there is no output on the SQL server. help?
Hello, have you find a solution to this?
pst.executeUpdate(); was missing
Which Screen Recorder Do You ????
Its camtasia
Thanks...
@@indrasubedi i need this please share link of full vervion with me in google drive
first one! ^^
+Prince Philip Go to my videos, you can find there
សង្សាអ្នកណាសង្សាសំខាន់ខ្ញំុស្រលាញ់នាង
Thank you so much.
Glad to hear your feedback