Complete CRUD Operation in Android Studio Java with SQL Server | ProgrammingGeek

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 92

  • @nizamuddin4128
    @nizamuddin4128 3 года назад +6

    Many many thanks sir. After a long time I have found such helpful tutorial. Thanks again.

  • @mrreese2342
    @mrreese2342 Год назад +1

    The way you say "Oooow" is kinda adorable lol :) thanks for the tutorial really helps

  • @isabellafrancine1287
    @isabellafrancine1287 2 года назад

    thank you so much

  • @Jeanto21
    @Jeanto21 2 года назад +2

    If anyone has any problems connecting to the database. I tried to add a new firewall rule with port 1433, this is what worked for me.

  • @kaiserjadden6319
    @kaiserjadden6319 26 дней назад +1

    sorry to ask....after thenk you for this great job can i connect specify table on my database,..please help

    • @ProgrammingGeek
      @ProgrammingGeek  24 дня назад

      Yes, you can connect to a specific table. Please mention table name in your SQL query.

  • @andreaberge6956
    @andreaberge6956 3 года назад +4

    I am connected to the database and can select values, but insert and update won't work.. do you know what could be the problem?

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад

      check the full code. at the ending watch data.add portion. hope you will success. Thanks.

  • @loubnaelbachari5754
    @loubnaelbachari5754 3 года назад +1

    so many thanks for you i have found it so helpful

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад

      Thank you too for your valuable comment. Please keep in touch.

  • @briankipkoros1387
    @briankipkoros1387 2 года назад +1

    Thank you so much man you are a lifesaver

  • @juliosolis6255
    @juliosolis6255 3 года назад +1

    Excelente muy bien explicado, muchas gracias!

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад +1

      Thanks for your comment. Please keep connected.

  • @erangalakmal8653
    @erangalakmal8653 Месяц назад +1

    Sir.. Can be acces local sql database form internet connection useing form anddroid app ?

    • @ProgrammingGeek
      @ProgrammingGeek  Месяц назад

      Please try with real ip instead of local ip. Then it will be accessible from internet.

  • @dhakshnamoorthy8673
    @dhakshnamoorthy8673 2 года назад +1

    Hi bro I'm developing an online bingo app in android studio where the user is ready to play the server should find the opponent for it and start the match . For that what should I do or what online server should I choose pls guide me .

  • @muhammadsyafie4248
    @muhammadsyafie4248 2 года назад +2

    currently having E/error: net.sourceforge.jdts.jdbc.Driver, any idea?

    • @dummysecond2787
      @dummysecond2787 2 года назад

      same, did you fix yours? how did you fixed? can you share it. Pls

    • @muhammadsyafie4248
      @muhammadsyafie4248 2 года назад +1

      @@dummysecond2787 done, i already fixed mine. share to me ur email i sent the code for the db connection

    • @dummysecond2787
      @dummysecond2787 2 года назад

      @@muhammadsyafie4248 (second dummy0) my g-mail acc. No spacing. I comment so many times but always deleted :(

    • @dummysecond2787
      @dummysecond2787 2 года назад

      @@muhammadsyafie4248 send me your email too. I will message u thank youu!

    • @muhammadsyafie4248
      @muhammadsyafie4248 2 года назад

      @@dummysecond2787 done email, just replace ur main activity file

  • @JoseMartinez-hj9tt
    @JoseMartinez-hj9tt 7 месяцев назад +1

    Thanks man!!

  • @SKpro52
    @SKpro52 Год назад

    If I create multiple screens and only execute the connection function on Mainactivity, will the database be accessible
    from other activities?

  • @gneytalha
    @gneytalha Год назад

    Hello sir, I am trying to program android, but it is very difficult to find resources. Can I ask you a question, especially regarding SQL server transactions? Do you have any ideas on how I can get the total values ​​of records between 2 dates?

  • @daniworraodaa949
    @daniworraodaa949 2 года назад

    how can i get your source code ...but you did it everything thank you al ot

  • @phuongngaphan2525
    @phuongngaphan2525 3 года назад +2

    Hello friend. I already have a database on hosting and how can I connect to it. Please help me

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад +2

      Thanks for your question. You may use real ip instead of local ip. I will make such tutorial very soon. Please wait

  • @Febrianian
    @Febrianian 3 года назад

    Thanks for this tutorial, Login user into app please ...

  • @SnoopyMatcha
    @SnoopyMatcha Месяц назад +1

    12:15 Sir, in the line 24, how can I get the MS SQL Server ip?

    • @ProgrammingGeek
      @ProgrammingGeek  Месяц назад

      IP is the PC IP address where SQL server is installed.

  • @coding3645
    @coding3645 16 дней назад +1

    Can we use xampp server for SQL

  • @BillionaireLifeStyle-g9e
    @BillionaireLifeStyle-g9e 3 года назад +1

    Is there any other thing needed to connect to database
    I have done all the things in this video but my connection have not been setup maybe u can help...!!

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад

      Check your SQL Server port no. Default port no is 1433. If it change in your sql server then put that one. to get port no- go to SQL Server Configuration manager. right click on the TCP/IP and go to the Property scroll down and see the port no. Thanks

  • @erwen1kad682
    @erwen1kad682 2 года назад

    thank you so much sir

  • @brygerrodriguez3458
    @brygerrodriguez3458 Год назад

    Do you have an example of how to connect with Azure?

  • @Qu3sti0nX
    @Qu3sti0nX 3 года назад +1

    Hello. First of all, thank you for this tutorial. It helped a lot! Thanks.
    On the second hand: Could you help me with, what should I do to connect my local database from a real device? I always get "connection refused" error. I know it could be the firewall, but can you help me, how could I allow the connection?

    • @rivaldovola9896
      @rivaldovola9896 3 года назад +1

      i have the same problem please help

    • @Qu3sti0nX
      @Qu3sti0nX 3 года назад +3

      @@rivaldovola9896 I've found the solution. :)
      1.) Go to the Control Panel
      2.) Go to System and Security
      3.) Go to Windows Firewall
      4.) Now go to Advanced Settings
      Okay now you should import new policies for inbound and outbound rules.
      1.) Select Inbound rules
      2.) Click New Rule
      3.) Select Port and then Next
      4.) Now give your port which was 1433.
      5.) Now press Next until you reach the final chapter.
      6.) Give a name for the rule. (It can be anything)
      Okay, the inbound rule is done. Now you need to do the very same thing with outbound rule. Just be "careful" at the chapter named Action select the "Allow all Connection" option.
      I hope it helps :D

    • @ProgrammingGeek
      @ProgrammingGeek  2 года назад

      Thanks

    • @patd7352
      @patd7352 2 года назад +1

      I struggled with getting my physical phone to work, but finally got it to work when I enabled port forwarding on the *router's* 'firewall status' section (to my laptop within the router's LAN) as well as on my laptop's firewall (laptop is on a Home WIFI), to make port 1433 open on my laptop's IP address. Hope this helps someone struggling with this.

    • @Digital-Chetan
      @Digital-Chetan 10 месяцев назад

      I am facing same problem how can I resolve it
      @@patd7352

  • @technosmart2435
    @technosmart2435 3 года назад +1

    Very helpful bt.
    But how can I call procedure, function ,from sql server instead of writing query in android studio . Please help me.

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад

      Good idea. I will make such tutorial very soon. Thanks

    • @technosmart2435
      @technosmart2435 3 года назад +1

      @@ProgrammingGeekI'm waiting .. I'm waiting .
      I want use SQL server with android completely. I'm web developer .Use .Net c# with SQL server. So I want my web application in android using SQL data Base. Please make video. Thnx for responding

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад +1

      @@technosmart2435 Thank you too to be connected with me.

  • @nurulhaiderhridoy1551
    @nurulhaiderhridoy1551 Год назад

    Hi sir , I haven't any error but after i inserted any value in android studio it is not inserting in Database.
    please Help me sir.

  • @namikazeminato68
    @namikazeminato68 Год назад +2

    Hey man! I loved the video and found it very helpful, But there is one problem, I do not know how to find the ip address of the server, can you please tell me how to find the ip address of the sql server? Thanks in advance

    • @ProgrammingGeek
      @ProgrammingGeek  Год назад

      IP address is in PCs, if your computer is in local network, you must have an IP Address. To get IP address of the server go to the ethernet settings. double click on LAN icon. You can use SQL server name instead of IP Address. Thanks.

  • @leminhthang7898
    @leminhthang7898 2 года назад

    You can do a complete project on human resource management android app connected to sql server. And has all the functions. Combined with RadioButton, Switch, Date May. I really need them. Please! I am an amateur.

    • @leminhthang7898
      @leminhthang7898 2 года назад

      And maybe County, district. Retrieved from database for selection in insert.

  • @rezanurdiyanto9167
    @rezanurdiyanto9167 3 года назад +1

    Good, thankz

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад

      Thank you too for your valuable comment. Please keep in touch.

  • @brygerrodriguez3458
    @brygerrodriguez3458 Год назад

    could you do the same with azure data base? so far there is no one to show it on video

  • @nguyenleconghauit
    @nguyenleconghauit 3 года назад

    Thanks man. This video so great that you have show data from SQL to textview in app Android. But now 09/ 2021, I have try many way, it really not workings that when I click button, no event listener appears.And I have connect check login from android to sql but it not working. Can you help me? Can I have link your Facebook to ask you? Thanks you a lot, I will be grateful you. Hope you reply my answer.

  • @bh7066
    @bh7066 2 года назад +1

    E/Error: The executeQuery method must return a result set.

  • @MeFiStArmaliteTV
    @MeFiStArmaliteTV 2 года назад

    It is possible to do the same but using PostgreSQL database instead of SQL Server?

  • @johnclarklabasan2110
    @johnclarklabasan2110 3 года назад +1

    Thanks, is this also working Xmap?

  • @mrreese2342
    @mrreese2342 Год назад

    Quick question, if i build the app on my phone and disconnect phone from PC, will the database be accessed and how ?

    • @OffYourFeet
      @OffYourFeet 5 месяцев назад

      Late response but the answer is yes. The mobile phone and the laptop you are using are both needed to be in the same connection. To connect them to each other, you may use a single internet provider or just connect your phone through the mobile hotspot of your laptop.

  • @christopherchua3997
    @christopherchua3997 2 года назад +1

    Hi, is it possible to accept null values for the CRUD Operation?

  • @RohitK10
    @RohitK10 Год назад +2

    Can I search data by I'd?
    Plz reply

    • @ProgrammingGeek
      @ProgrammingGeek  Год назад

      Sure, you can. watch this tutorial ruclips.net/video/-vca9x_d28U/видео.html

  • @mydreamer2023
    @mydreamer2023 2 года назад

    I receive this error
    Network error IOException: Connection refused

  • @ibrahimalmesbahi754
    @ibrahimalmesbahi754 2 года назад +1

    how to make the android app with sql server
    work offline such as whatsapp

    • @ProgrammingGeek
      @ProgrammingGeek  2 года назад

      host the database and put real ip in connectionstring. thanks.

    • @ibrahimalmesbahi754
      @ibrahimalmesbahi754 2 года назад

      @@ProgrammingGeek I have hosted Sql Server database and i can connect to it normally . now i need to create SQLite as local database and make sync between SQLite and remote sql server in android studio

  • @ivandaming1995
    @ivandaming1995 2 года назад

    hello! how to code that if I use xammp phpmyadmin

  • @harisulislam6302
    @harisulislam6302 2 года назад

    I have develop water application which is run on localhost sql server. If install apk directly the conection string is working successfully that means i can login. But if i install apk via play store i can not login. Can any one help me about this. Please please

    • @ProgrammingGeek
      @ProgrammingGeek  2 года назад

      Try with real ip instead of local ip. Thanks

  • @HoanNguyen-z8c
    @HoanNguyen-z8c Год назад +1

    pls code file activity_main.xml

    • @ProgrammingGeek
      @ProgrammingGeek  29 дней назад

      Code is added in the description. Please check!

  • @easypc1913
    @easypc1913 10 месяцев назад +1

    hello
    Send me a link github

  • @markcruz3008
    @markcruz3008 3 года назад +1

    Hi Programming Geek, I want to know if we can use the Server Name rather than the IP Address to connect to SQL Server?
    Your reply would be really appreciated. Thank you!

    • @ProgrammingGeek
      @ProgrammingGeek  3 года назад +1

      Hello genius, Please try yourself and let me know. thanks🌷🌷

    • @markcruz3008
      @markcruz3008 3 года назад

      I've already tried it but no success. Already found another solution for my problem.
      Btw, thank you for replying.

  • @rajatx4823
    @rajatx4823 2 года назад

    Does not work sir

    • @ProgrammingGeek
      @ProgrammingGeek  2 года назад

      Check your connectionstring. you can copy from description box. Check you SQL Server Port no. thanks