C# SQL Database Tutorial 1:How to Connect and Use Local Database ( sql server ) using C#

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ม.ค. 2025

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

  • @Rahul-my7he
    @Rahul-my7he 6 ปีที่แล้ว

    Very nice and knowledgeable video...👍👍👍👌

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

    I really Really Like Your #Videos And Your #Teaching #Method Sir...😍🥰

  • @wasimzafri5224
    @wasimzafri5224 8 ปีที่แล้ว +162

    watch this video with 1.5 speed

  • @RodolfoMatos787
    @RodolfoMatos787 10 ปีที่แล้ว

    I am learning new things, thank you very much, will proceed with each of your videos at least 2 or 3 per day. I am also looking for a group of people who are interested in learning programming language and are willing to collaborate with simple projects. Practice will always make you better at whatever you do.

  • @alaabayoumi2072
    @alaabayoumi2072 9 ปีที่แล้ว

    Thanks dear
    Very Clear and very useful information

  • @carmenmitru4699
    @carmenmitru4699 10 ปีที่แล้ว

    Very useful!Thank you for helping me to learn Java and C#.God bless you!

  • @clarielyngrado3025
    @clarielyngrado3025 10 ปีที่แล้ว +1

    Thank you for this video it helps me to create a database as a beginner =) Thanks a lot.

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

    Thank you! I am gonna watch your other videos

  • @adriannadar8669
    @adriannadar8669 8 ปีที่แล้ว

    very nice and clear explained,

  • @skytaanew
    @skytaanew 10 ปีที่แล้ว

    Thank you very much for your better tutorial. Very nice tutorial

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

    Thank you very much for your helpful video and your time.

  • @kennethnwafor719
    @kennethnwafor719 10 ปีที่แล้ว

    Was just having problems with this connection stuff now...thanks a lot

  • @zdaylanproductions
    @zdaylanproductions 11 ปีที่แล้ว

    Thanks man! liked this tutorial a lot! + you got a new subscription!

  • @antonioqxb
    @antonioqxb 10 ปีที่แล้ว

    Thanks for the tutorial, it was very enlightening.

  • @ronaldjohnson4470
    @ronaldjohnson4470 10 ปีที่แล้ว +2

    Nice tutorial, thank you.

  • @andreasbn
    @andreasbn 11 ปีที่แล้ว +6

    I don't have the Local Database item, how do I get that? Thanks in advance :)

  • @billyireland
    @billyireland 10 ปีที่แล้ว

    Thank you,
    That was just what I was looking for!

  • @neilxpeart
    @neilxpeart 10 ปีที่แล้ว

    Thank you sir for the video, very informative.

  • @sidarakeo1267
    @sidarakeo1267 9 ปีที่แล้ว

    Good Explain ... i like your voice

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

    Very Good ........... Thanks

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

    Super Explanation bro.

  • @ZlatkoAlomerovic
    @ZlatkoAlomerovic 10 ปีที่แล้ว +1

    Thank you :). For Visual Studio 2013 it is slightly different regarding controls and since I am not using Express versions of both VS2013 and SQL Server 2014 I have to use Service-based Database, but approach is the same.

  • @xcromezgaming
    @xcromezgaming 10 ปีที่แล้ว

    thank you so much , this is giving me new lesson :)

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

    Very good to understand

  • @paulcherny1425
    @paulcherny1425 10 ปีที่แล้ว

    Thank you for the video, you very helped me.

  • @shutup-ew9rw
    @shutup-ew9rw 5 ปีที่แล้ว

    watching with 2x ( Great work )

  • @greatsea
    @greatsea 10 ปีที่แล้ว +14

    I am running Visual Studio 2013 for desktop and it does not have the Local Database yellow icon. I can't find the local database.

    • @TheMatDark
      @TheMatDark 10 ปีที่แล้ว

      Yeah! What is up with that?

    • @rwxstudio7173
      @rwxstudio7173 10 ปีที่แล้ว +13

      That's a Service-Based Database in 2013.

    • @TheMatDark
      @TheMatDark 10 ปีที่แล้ว

      Oh
      Thankz you :)

    • @marioescudero7103
      @marioescudero7103 10 ปีที่แล้ว

      Randy Smith Thanks a lot !!!!!

    • @rwxstudio7173
      @rwxstudio7173 10 ปีที่แล้ว

      Glad I could clarify that.

  • @akhilgangula476
    @akhilgangula476 9 ปีที่แล้ว +30

    i cant see "local data base " in add new item

    • @GeniusestJ
      @GeniusestJ 9 ปีที่แล้ว

      Same query...

    • @radoznalipustolov2693
      @radoznalipustolov2693 9 ปีที่แล้ว

      +Akhil Gangula What version of Visual Studio do you have?

    • @GeniusestJ
      @GeniusestJ 9 ปีที่แล้ว

      2015, the version I used, encountered same problem.

    • @akhilgangula476
      @akhilgangula476 9 ปีที่แล้ว

      Nikola011 ya I used 2015

    • @radoznalipustolov2693
      @radoznalipustolov2693 9 ปีที่แล้ว

      Hmm, I'm using VS 2012 and I don't have that problem. Do you have legal version of VS?

  • @fahim8985
    @fahim8985 8 ปีที่แล้ว +13

    I am trying this in visual studio 2015 and I can't find the "Local Database" add item. I can find it in visual studio 2010 installed in the same machine but cannot find in 2015 version? I am new to these things so what is the problem here can someone help me out?

    • @hazio18
      @hazio18 8 ปีที่แล้ว +1

      Do you have SQL featured installed with Visual Studio? :)

  • @omidvarerahmat
    @omidvarerahmat 11 ปีที่แล้ว

    Thank you very much for your time and effort. Your videos are awesome. I was wondering if you could make a tutorial for a practical online database, to keep a database in a website so people could log in and view/update the data through internet. Imagine we just have a domain/web hosting, what's the best way to do this through visual studio/ C# or ASP? A tutorial would help a whole bunch of people who I know are looking for a tutorial. Thanks a lot.

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

    THANK YOU SO MUCH SIR...

  • @chavpl
    @chavpl 10 ปีที่แล้ว

    @ 8:56 you can actually "Configure Data Source with Wizard..." instead of adding a new one. So you can check database objects in EmployeeDataSet without creating EmployeeDataSet1. Or am I missing something?

  • @user-tf7te5fs2n
    @user-tf7te5fs2n 3 ปีที่แล้ว

    Thank you so much for your video
    It is clear and helpful
    I have two questions and I hope you help me
    1- how to create multi users form so every user has different form that appearead when logging in??
    2- how to create calender appointment form to register different teachers' schedule (by data entery employee) and every teacher could find his/her schedule??

  • @NewSpiritWhosThis0707
    @NewSpiritWhosThis0707 9 ปีที่แล้ว +2

    For those who are using VS 2013, go to "Service-based Database" under the data category. "Local Database" doesn't exist in VS 2013.

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

    Thx guys, your video very good

  • @RixwanKhan
    @RixwanKhan 10 ปีที่แล้ว +15

    Daaaattaaa Base :P

  • @saidbarke6363
    @saidbarke6363 8 ปีที่แล้ว

    really helpful..Thank you.

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

    very good,thank for help

  • @willpurser3208
    @willpurser3208 8 ปีที่แล้ว

    Thanks so much, helped out heaps

  • @JahangirAlam-rb6rj
    @JahangirAlam-rb6rj 7 ปีที่แล้ว +4

    PLZ make tutorial on Visual Studio 2017 for LocalDB .

  • @hansthered
    @hansthered 11 ปีที่แล้ว

    Great video, thanks again!

  • @otomaringotka4421
    @otomaringotka4421 9 ปีที่แล้ว

    Great tutorial! Thanks

  • @aadi521
    @aadi521 9 ปีที่แล้ว

    Thanxx alot....!!!!!! Very helpful :)

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

    thank your so much sirr.............

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

    In Visual Community 2015 I don't see "Local database" with sdf suffix. Only "service based database" with mdf suffix. Should I use mdf ?

  • @namhoangle5599
    @namhoangle5599 8 ปีที่แล้ว +1

    can not drag local database to form any more in Visual Studio 2015? Thanks. I am newbie of C#

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

    Heyy, it's a nice and easy understanding Video. Great Job. Can show us, how you can add a photo to the database?

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

    What do you do if you wish to have a combobox rather than a texbox?

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

    Are there any good videos where they explain what they are doing? Like the 'why' of how a certain command is written, best practices, etc?

  • @worthsharingvideos2647
    @worthsharingvideos2647 9 ปีที่แล้ว

    Have you done video for VS 2013 ?

  • @shendoo2020
    @shendoo2020 10 ปีที่แล้ว

    Thank You For that Great Tutorial :)

  • @Multilogic
    @Multilogic 11 ปีที่แล้ว

    Thanks for the tutorial!

  • @MohammedismailAkbarAli
    @MohammedismailAkbarAli 9 ปีที่แล้ว

    Thank you for the very clear idea for the database...
    i want to ask can i use the local database consept for windows compact embedded application which i and making c#...
    Thank you

  • @krimbelkacem5751
    @krimbelkacem5751 11 ปีที่แล้ว +1

    great tutorial
    i was looking for this!
    can we use entity and linq with local database if so show us how
    thank you very much

  • @TheMatDark
    @TheMatDark 10 ปีที่แล้ว

    Are there any more formats of the database to it? like .dbs for example

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

    thanks a lot. superb

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

    In order to use locadb do i need to install SQL Server Management Studio?

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

    Hi its really helpful. i want to know if i want to run the database on another system. will it work? if i copy all the files.

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

    It's working. Thank you

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

    right did it connected it to the database however how do you update the database from visual studio

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

    Thnx so much sir

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

    hey dude! is this local storage database supports multi connections? like server and client based applications?

  • @MrJamesDope
    @MrJamesDope 10 ปีที่แล้ว

    very useful, thanks!

  • @kristinananeva2938
    @kristinananeva2938 9 ปีที่แล้ว +2

    If i want to use the c# project on another computer, will the database be saved if i copy and paste the project on the other computer? I'm asking this question because i see that the database is local.

  • @purvaagrawal5505
    @purvaagrawal5505 11 ปีที่แล้ว

    if you are using local database ,is it possible to see this database on remote location? or we need server for this.

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

    Great One

  • @klarizonemarzmotol7013
    @klarizonemarzmotol7013 10 ปีที่แล้ว +13

    this doesn't save any changes to the database.

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

      You select the Employee.mdf(or .sdf) and under the tab "properties", you select as "Copy to Output Directory" the "Copy if newer" option. That worked for me.

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

      build the project i guess

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

      Use command builder.

  • @footloose3766
    @footloose3766 8 ปีที่แล้ว

    For those who do not see "local data base " in add new item go to msdn.microsoft.com/en-us/library/ms233763.aspx - it helped me 100% to use with this tutorial.
    (as well as msdn.microsoft.com/en-us/library/ms171890.aspx )

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

    Have you wrote the backend code there??

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

    which version of sql server management studio is for free or did u get ?

  • @null2846
    @null2846 8 ปีที่แล้ว +8

    why does this man sound like he's about to call and tell me there's something wrong with my computer

    • @153ridzzzz
      @153ridzzzz 8 ปีที่แล้ว +1

      Quality shitpost right here...

    • @null2846
      @null2846 8 ปีที่แล้ว

      Rid Z pajeet, my son

    • @153ridzzzz
      @153ridzzzz 8 ปีที่แล้ว

      shitpost steve who the fk is pajeet?

    • @null2846
      @null2846 8 ปีที่แล้ว

      Rid Z my son

    • @153ridzzzz
      @153ridzzzz 8 ปีที่แล้ว

      shitpost steve nice. say hi to him for me.

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

    It really help a lot. Can I have a request for making a user activity log using MySql. really need it in making a good c# project. Thanks

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

    can you do a video on storing webpages / articals in a database and to search them via search box ?

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

    Thank you so much

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

    in sql server the database is named Employeeinfo , but in Visual Studio you named it Employee.sdf , would not this cause a problem as they should be named the same ?

  • @nicolasjurymarsa.2685
    @nicolasjurymarsa.2685 2 ปีที่แล้ว

    can you see all the data you created from different computer you used ?

  • @vladpinera8007
    @vladpinera8007 8 ปีที่แล้ว

    can i use mysql for this one too? instead of ms sql?

  • @mahooyahoo1
    @mahooyahoo1 10 ปีที่แล้ว

    Great tutorial work fine until i save to windows explorer save all the file apart from employee,sdf is it because I'm not using visual studio 2010 professional ? I'm using visual Ultimate

  • @mya7590
    @mya7590 9 ปีที่แล้ว +1

    is it ok if we use service based instead of local database

  • @eugeneotwoma7646
    @eugeneotwoma7646 9 ปีที่แล้ว

    can a local data base be used to generate reports?

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

    Can you make a tutorial regarding dynamic/runtime connection with MySQL in C#.

  • @kirkukserver
    @kirkukserver 9 ปีที่แล้ว +2

    "LocalDataBase" (SDF) Item will Disappear when you select Net Frame 3.0 or below ... so be aware

  • @triplez300
    @triplez300 10 ปีที่แล้ว +1

    Can I use .mdb file instead of .sdf ? Thanks

    • @justdavebz
      @justdavebz 10 ปีที่แล้ว

      Yes you can. Just drag the mdf file into your project and create the new connection string

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

    please help me, am using visual studio 2012 and am not finding the option on which i have to use to add a data source. Can i get help on how i can proceed.

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

    the video is tooo old. the local database feature is not there on visual studio 2012 upwards . you need to update this video please

  • @AriaAndOliver
    @AriaAndOliver 8 ปีที่แล้ว

    I can drag my dataset over to display on my form.. Problem is, I am not getting the arrows or save or delete button on mine like yours has.... So there is no way I can navigate through the data..

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

    can you also make a video of creating invoice autnum? like atuto increment number. example is: PO1, PO2, PO3 and so on ...

  • @AhmedMohammed23
    @AhmedMohammed23 9 ปีที่แล้ว

    do i need sql server to run an app with sql compact at another pc?

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

    can you share this local database to other computer for multiple users to have the ability to read and write unto this single local database?

  • @stevetan8029
    @stevetan8029 9 ปีที่แล้ว

    can i import existing .bak files using this tutorial?

  •  10 ปีที่แล้ว

    Very good video!

  • @anilsinghrawat3628
    @anilsinghrawat3628 9 ปีที่แล้ว

    Dear Sir,
    How can we fetch data from Multiple table from local database.
    like (select statement from sql).
    can we use select query for fetch data.

  • @khabrio
    @khabrio 8 ปีที่แล้ว

    great tutorial... keep it up :)

  •  9 ปีที่แล้ว

    Hi, thanks your sharing.
    Can i reupload some videos in your channel?.

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

    thanks a lot sir!!!!

  •  10 ปีที่แล้ว

    I have following problem:
    visual studio 2013 doesn't show me 'lacal database' in the list.
    how can i install it on my pc (win 8.1, 64 bit) ?

  • @byMarto_com
    @byMarto_com 9 ปีที่แล้ว +3

    I have fresh new instalation of Visual studio 2013 BUT I don't have "Local database" template o.0

    • @NeelanshMathur
      @NeelanshMathur 9 ปีที่แล้ว

      StuartLittleJr Same here

    • @NewSpiritWhosThis0707
      @NewSpiritWhosThis0707 9 ปีที่แล้ว +1

      StuartLittleJr Try using "Service-based Database" under the data category.

    • @byMarto_com
      @byMarto_com 9 ปีที่แล้ว

      ***** ok I will
      Can you suggest me how to change the collation of the service based DB to utf8_general_ci, because I'd like to work cyrillic symbols ? (thanks)

    • @byMarto_com
      @byMarto_com 9 ปีที่แล้ว

      ***** 10x :)

  • @blessednyashamangirazi7132
    @blessednyashamangirazi7132 8 ปีที่แล้ว

    I cant find the local database in the add new item tab, any solutions? I'm using visual studio 2015.

  • @syedsalmannadeem
    @syedsalmannadeem 8 ปีที่แล้ว

    Show tables not working? Giving an exception why??

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

    Hello Sir, I have two computer and server, i need a local database sync with server. Is it Possible, when server rows updated it's want to update the local database automatically.