SQL Stored Procedures - What They Are, Best Practices, Security, and More...

  Рет қаралды 534,830

IAmTimCorey

IAmTimCorey

Күн бұрын

Пікірлер: 639
@SmokeySpace
@SmokeySpace 4 жыл бұрын
Out of all the years of watching computer and programming tutorials, you teach things so much better and explain everything and explain it in a way that makes sense, thanks!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I am glad my training is helpful.
@cbuosi
@cbuosi 5 жыл бұрын
Im a professional, experienced developer and theres always something to learn from your videos, even with 'easy' topics such as this one. Thank you for your videos. Great work.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
I appreciate the kind words.
@hapocs2
@hapocs2 6 ай бұрын
thats why its so overrated, in uni they think we need to know everything xd then i see people saying who are experienced developers that they learn from the simple videos xD
@rtothec1234
@rtothec1234 7 ай бұрын
I'm a MySQL user but I've learned a lot from this video and hope to apply my understanding to MySQL. That bit about granting regular users only access to stored procedures but not access to entire tables, and then only granting them an execute permission, is the crux on which I hope to predicate a solution to a problem I'm working on. Sorry I know I should not end a sentence on a preposition. Whereby, I gotta make some data accessible to people who don't really know how to write SQL. Hopefully I'm smart enough to do the job. Thanks for the video sir.
@IAmTimCorey
@IAmTimCorey 7 ай бұрын
You are welcome.
@andyhudsonsynthpop
@andyhudsonsynthpop 4 жыл бұрын
I've been using Stored Procedures for a least 20 years now, so watched more out of curiosity than anything else. However you never know what you might learn and believe me I have learnt plenty from your wonderful videos. The best of this for me was your commentary on entity framework which just reinforces my belief that I'm better off doing what I've always done. Each to their own I guess, but with so many people now only using entity framework I feel like a dinosaur because I'm not.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Awesome! I'm glad it was helpful.
@denitsageorgieva7209
@denitsageorgieva7209 2 жыл бұрын
We're not using EF in the company i work for and it's so difficult to find tutorials for adding that data layer without it! So definitely not a dinosaur 😆
@cmsinghrawat1367
@cmsinghrawat1367 Жыл бұрын
Sir need your help to understand procedure n fuctions
@opietwoep1247
@opietwoep1247 Жыл бұрын
I love working with stored procedures. The front end guys would argue with me how having it in c# was better. Until you try to read their logic and say those 20 lines can be done with a single case statement. Thanks for sharing great work
@philipdeihle6991
@philipdeihle6991 11 ай бұрын
44 😮
@RalfsBalodis
@RalfsBalodis 4 жыл бұрын
0:00 - Intro 1:12 - Demo Data Base overview 2:00 - Creating new stored procedure 7:35 - Calling the stored procedure 10:11 - Changing existing stored procedure 11:12 - Stored procedure with variables 16:51 - Stored procedures: Recap 19:54 - Benefits of stored procedures: Security 22:57 - DB security: Users and Roles 32:49 - Other benefits of stored procedures 34:18 - Drawbacks: No source control 37:36 - Drawbacks: Business logic in DB 41:48 - Drawbacks: Using Entity Framework 43:26 - Summary and concluding remarks
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thank you kind sir!
@shepniel
@shepniel 7 жыл бұрын
Seriously this is the best channel about programming, at least for me, hope you continue with these videos that are really helpful. Thank you very much!
@IAmTimCorey
@IAmTimCorey 7 жыл бұрын
I will definitely be continuing. I'm glad you are enjoying the videos.
@elladevan7082
@elladevan7082 2 жыл бұрын
I have a clear pic of what a stored procedure is by watching this amazing content. I clicked on subscribe option before even close to watch this video. Please keep uploading...
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I am glad it was so helpful.
@shader3020
@shader3020 4 жыл бұрын
Thanks for the lesson. I enjoy that you teach more of the WHY and not just the HOW.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@gordonhope9219
@gordonhope9219 3 жыл бұрын
Tim, thanks for another great video!! Although I am now retired and never employed formally as an "engineer", much of my career was around managing a business that was highly secure and mission critical service network. Stored Procs are the way of life in such environments and, like you, NOBODY felt comfortable enough to executed the Entity Framework in such an environment. The business had to be able to fix ANYTHING that happened in the shortest time possible and performance was an issue. With about 1.5M connected end points sending in asynchronous signals, you can imagine how much data was coming into the network and why performance and security were so important. Kudos to you - you are correct about security!!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thanks for sharing based on your experiences. This type validation helps others understand the importance of the lessons and concepts Tim shares.
@DevineAbyss
@DevineAbyss 4 жыл бұрын
This was one of the most understandable, cohesive, well structured and best introductions I have seen in my whole life. I came with no understanding of anything besides SQL-statements and programming (java etc.) and I feel, I have a decent idea of procedures and role-management now.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Fantastic! Thanks for sharing. Please check out my other training videos - kzbin.info/door/-ptWR16ITQyYOglXyQmpzw
@leozhang4574
@leozhang4574 4 жыл бұрын
Hi Tim, I've watched a dozen of your videos and they are very useful. I'm also learning from you how to explain complex technical ideas in plain English to non-technical audience and even to junior programmers. Thank you! From Guangdong China.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Awesome!
@sebastianweise4790
@sebastianweise4790 4 жыл бұрын
Almost 3 years later, i found this, and... well...subbed and THANK YOU! It helped me a lot!
@sebastianweise4790
@sebastianweise4790 4 жыл бұрын
Ok, i reached the end of the video now, and i just have to THANK YOU AGAIN! Awesome, really, you made it click so many times in my head and filled me with confidence, awesome awesome awesome! Thanks! Please continue doing this, i think i will watch a good chunk of your videos from now. :)
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I am glad it was so helpful!
@randyriegel8553
@randyriegel8553 2 жыл бұрын
Company I'm working for now uses C# and SQL Server. The reporting team wanted access to use sql to make reports and such because they are pretty tech savvy too. So we just created a "Reporting User" and gave it "db_datareader" only. They can query what they want. No sensitive information... its a database of results returned from robots. There are only 4 of us that can actually modify the database in any way. As far as naming convention I still use "sp_" if I'm creating it in master for a common use across our different databases (more things like backup, turn replication on for a database, etc.) Rule of thumb any changes that can be damaging we run the stored procedure to back up the DB before making changes. Yes, databases are still backed up every night though. If I screw something up like an update without a where clause (i've did this before) I can copy that bak. to my local machine get original values to update the production database back to how it was at the moment I backed it up. Worst case we can restore the backup directly in SQL server but with replication this means pretty much bringing that database down for about 1/2 hour or so and resyncing. Fun fun :)
@an_wobbly
@an_wobbly 3 жыл бұрын
Fantastic video! Just had a recent interview for web dev in the financial sector and I have fairly little experience with T-SQL. One of the things they asked for me to do is additional research on Stored Procedures and this is the most clear and comprehensive guide I've seen thus far. I really appreciate it and I hope you're happy to hear how helpful you are for helping me get my next job!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Awesome! Glad I could help.
@bluemoon1357
@bluemoon1357 5 жыл бұрын
This is by far the best video i have ever seen on this topic, Thank you Tim
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
You are most welcome. Thanks for watching.
@charliegrayii2124
@charliegrayii2124 3 жыл бұрын
Great channel, excellent mentor, coach, and trainer without a ludicrous price tag. Thank you, Thank you, and Thank you.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are most welcome.
@johnnyvcrow
@johnnyvcrow 5 жыл бұрын
Thanks for pointing out that security matters! It's such a big deal today yet I still see so many tutorials where they completely disregard security matters.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
You are most welcome. Thanks for watching.
@thenujaliyanage2207
@thenujaliyanage2207 2 жыл бұрын
Amazing video! Not only do you explain what stored procedures are, but you also give detailed background information and use cases. Keep up the great work!
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks! Will do.
@mehrtashsouri6862
@mehrtashsouri6862 4 жыл бұрын
Dear Tim, I think You have a precious gift to explain concepts. also, using Cached execution plans is one of the most important benefits of Stored Procedures
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks!
@juanminglao3699
@juanminglao3699 3 жыл бұрын
I've been watching your video's since the start of my programming journey 1 and a half years ago. Thank you for yet another great tutorial!
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You're very welcome!
@ghulamali7676
@ghulamali7676 5 жыл бұрын
The way you explain things is amazing.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
Thank you!
@asyncawake9011
@asyncawake9011 6 жыл бұрын
Very easy to follow introduction to stored procedures. Just enough depth to get the general idea without getting bogged down in the details. Thank you for the great free content you provide!
@IAmTimCorey
@IAmTimCorey 6 жыл бұрын
You are most welcome.
@devfromthefuture506
@devfromthefuture506 4 жыл бұрын
Best teacher on KZbin
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thank you!
@bartoszbuawa6521
@bartoszbuawa6521 3 жыл бұрын
It is the only yt channel where I always give a like button before I start watching. Many thanks for all tutorials !
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad you like them!
@supa.scoopa
@supa.scoopa 10 ай бұрын
Waiting for a full course on SQL by you, because it's brilliantly explained!
@IAmTimCorey
@IAmTimCorey 10 ай бұрын
I do have a full SQL course: www.iamtimcorey.com/courses/accelerate-microsoft-sql/
@niyaz8
@niyaz8 6 жыл бұрын
I never watched about procedures before. And I thought it will be necessary to watch several tutorials. But you made me understand watching only one. Thanks
@IAmTimCorey
@IAmTimCorey 6 жыл бұрын
Excellent!
@gr8one73
@gr8one73 6 жыл бұрын
This, and the rest of your videos the videos on this channel, is absolutely golden! The SQL course on your site is worth way more than you're charging. You and Derek Banas are The best source for this stuff. Thank you very much, Corey!!
@IAmTimCorey
@IAmTimCorey 6 жыл бұрын
Thanks for the compliment. I appreciate it.
@raghum4938
@raghum4938 4 жыл бұрын
Very clearly and professionally explained. Thank you so much Tim.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@debbie1724cham
@debbie1724cham Жыл бұрын
I am a beginner of SQL sp coding. Your video is super detailed and concise. Thank you so much for your help. This is exactly what I need now. Instead of linked server, I would try a new SQL authentication account and use as connection string credentials in our custom script. I will update here on the results.
@IAmTimCorey
@IAmTimCorey Жыл бұрын
Glad it helped!
@adan-codes
@adan-codes 5 жыл бұрын
You are doing the lords work sir. Thank you, I needed this for a project at work.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
Thanks!
@imadabab
@imadabab 4 жыл бұрын
Thanks a lot Tim about this great video. I personally build all my ASP.NET projects on simple and complex stored procedures and I will always keep using them, all the reasons you have mentioned are correct 100%, I feel very confident and relaxed when I use stored procedures, and once the stored procedure does its job, I know that it will never give me any surprised error in the futre, they are very controllables, what you write is what you get and no code is behind the scene also they are independant from each others. Great job Tim. Please keep it up as usual.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks for sharing
@imadabab
@imadabab 4 жыл бұрын
@@IAmTimCorey Thanks for your efforts dear.
@syrss7510
@syrss7510 2 жыл бұрын
I had many deliberations on sp. Many dissuaded me from using it. I was convinced that sp provides security. But your video provides a very structured reasoning
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Great!
@jeffsaffron5647
@jeffsaffron5647 4 жыл бұрын
For SQL Server newbies like me that always used Windows authentication locally, when you create a new SQL Server User you also need to allow SQL Server Authentication in SSMS -> Select Server (right click) -> Server Properties -> Security -> Server authentication. For some reason mine was set to Windows mode only by default.
@LoreleyRH
@LoreleyRH 4 жыл бұрын
Thanks :D
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks for sharing.
@tdlabs
@tdlabs 2 жыл бұрын
Thank you tim for all your amzing content, i got a job in IT and your videos were super helpfull both in recruiting and during actual work. Best of luck for you and thanks for helping me turn my life around ! Cheers from Portugal !
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Great to hear! Thanks for sharing.
@wisemanyt82
@wisemanyt82 3 жыл бұрын
I'm a DBA and it's good to hear a DEV perspective advocating SPs. :-) ORM tools like entity framework seem to be quite fashionable with developers. I get the appeal but you give up a lot by not using stored procs - explained very nicely in this video.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
I'm glad you approve.
@psykodiak5333
@psykodiak5333 5 жыл бұрын
First day at work. So glad I found you!
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
I hope this channel is a lot of help for you.
@turn1210
@turn1210 4 жыл бұрын
Great video Tim, I’ve never quite understood that “business logic in the UI only” mantra. Business logic should be wherever it’s most appropriate.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks!
@iangabrielalcantara7756
@iangabrielalcantara7756 3 жыл бұрын
I didn''t know about the sp_ naming prefix. I gotta stop naming stored procedures that way. Thanks for the help sir. Very helpful for a beginner in stored procedures
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thanks for trusting Tim as you build your skills
@modibosanogo3491
@modibosanogo3491 4 жыл бұрын
This is the first time I've ever seen a meaningful use of stored procedures.Thank you so much Tim Corey.The sql databases are most of time shrouded in secrecy and most of developers just know the fundamentals of them .I have been struggling for longtemps to level my expertise in sql databases up to my mastery in Mongodb but just in vain: I am just left with fundementals.It is really crazy.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I am glad you found it valuable.
@kdavis63
@kdavis63 4 ай бұрын
Been using them for 20 years...they are they best...
@IAmTimCorey
@IAmTimCorey 4 ай бұрын
Great!
@islamghaith9172
@islamghaith9172 3 жыл бұрын
seriously one of the best videos I ever watched with a great and detailed explanation.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Glad it was helpful!
@josephizz4877
@josephizz4877 4 жыл бұрын
the most underrated channel on earth! thanks man.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I appreciate the kind words.
@josephizz4877
@josephizz4877 4 жыл бұрын
@@IAmTimCorey you can't imagine how much you helped in my career, hope your life gets happier and easier like what you doing to ours ♡
@smakadhar
@smakadhar 4 жыл бұрын
Great explanation of SP in such a simple way. Thanks Tim
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Glad it was helpful!
@willdupleich
@willdupleich 3 жыл бұрын
Love your videos. I am very new at creating web apps with MVC in C# and I totally agree with you that EF is not the way to go when working with a SQL Server database. I have over 25 years of experience developing SQL server databases and stored procedures are the way to go for all the reasons that you mentioned. Now I need to learn how to used SP with a WebApp.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Thanks for sharing!
@liberumoratio1704
@liberumoratio1704 2 жыл бұрын
Some of the best training videos. A great starting place.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@giaptiennbros
@giaptiennbros 5 жыл бұрын
Hi Tim! You explain things and make it so simple, thank you !
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
You are welcome.
@nicholascasey9784
@nicholascasey9784 4 жыл бұрын
this class on stored procedure basics was very helpful. thank you!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Glad it was helpful!
@umitgulsen9869
@umitgulsen9869 7 жыл бұрын
I was just preparing to move my classical ASP app ( including SP’s) to MVC with EF. Of course, I’m pleased with speed of execution of SP’s, especially in reports, but DB dependency is another consideration for me. I watched so many videos, even bought some trainings. Then I watched this video. It’s a perfect eye opener for me. I’ll watch your tutorial at first, then decide which way to go. Thank you this valuable information. Best regards.
@IAmTimCorey
@IAmTimCorey 7 жыл бұрын
I'm glad to be of help.
@jasper5016
@jasper5016 5 жыл бұрын
This is the best tutorial series I have seen. Its ridiculous that you have less than 100K subscribers. You should have at least 500K subscribers.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
I appreciate the kind words.
@picklerick715
@picklerick715 2 жыл бұрын
Thank you very much Tim! I learnt so much about stored procedures in 44 minutes than I did in my entire semester. Please upload a video about triggers and functions if possible. I'll be looking forward to it. 💪
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
@opietwoep1247
@opietwoep1247 Жыл бұрын
37:55 you are correct. Business logic belongs in the database.
@Laggie74
@Laggie74 5 жыл бұрын
Just want to say, I love your videos and I totally understand where you are coming from. I've worked on systems that used both SP and Linq to EF. Using SP when performance becomes an issue. But Linq is definitely very addictive because it's easy to read and compose complex queries conditionally. But it's also where the performance issue crops up because it's so easy to nest subqueries without thinking about it.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
Yep, there are a lot of hidden gotchas.
@martinvaughan4197
@martinvaughan4197 4 жыл бұрын
I completely agree with your position on the 'no business logic in the database' edict. In fact, I would argue that a relational database IS an implementation of business logic in itself, since each table represents a logical data type. Entities such as 'customer', 'product' and 'customer-order' are an integral part of most business models!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Thanks for sharing your perspective.
@turn1210
@turn1210 4 жыл бұрын
Exactly, “business logic” encompasses the whole application, both the database and the UI, then each layer performs the role best suited to it to govern that logic
@polinemuthaiga2752
@polinemuthaiga2752 5 жыл бұрын
for the first time to see Spro well elaborated Kudos Corey
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
Thank you!
@ticketisland
@ticketisland 2 жыл бұрын
This is excellent, thank you, very clear and concise, one of the best I've seen 🙂
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@choubc1
@choubc1 2 жыл бұрын
I totally agree with you, we can use visual studio data tools project to use compare changes and have it in source control. Similar to what Red gate does.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Yep.
@dergimorka6126
@dergimorka6126 4 жыл бұрын
WOOW i don't know what to say u cleared my mind i definitely got the idea of SP thank you so much Tim i recommend ur channel to friends i liked it
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Happy to help.
@lindatubbing2201
@lindatubbing2201 4 жыл бұрын
Omg, after watching your video, SQL Stored Procedure is on my mind. Thank you.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome!
@Hamza-Shreef
@Hamza-Shreef 2 жыл бұрын
Tim ! you 're really the best one to explain this. go on
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@joellevi275
@joellevi275 2 жыл бұрын
Excellent tutorial as always. Thank you for taking the time putting it together. Regards
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@solomon645
@solomon645 3 жыл бұрын
Very good explanation Mr. Tim, and thank you so much for that.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@jimkeifer135
@jimkeifer135 3 жыл бұрын
I do like the idea that business logic, i.e. data validation is built-in to each dB, as it might change from one dB to another based on business needs..
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Having some data validation on the database can be a good option, since you don't always control who calls your stored procedures. Just don't go crazy with it and bog down your server.
@mikeaus3099
@mikeaus3099 6 жыл бұрын
Great video. As far as source control you can always created a repository of your stored procedures in .sql or even text files.
@IAmTimCorey
@IAmTimCorey 6 жыл бұрын
Yeah, I've tried that but it always becomes a mess. Normally a rollback of a commit means you get the rolled back code but you can't really do that with SQL. Sure, you could put a drop statement in the create for a stored procedure, which would work (just run all scripts then) but that doesn't work for tables unless they are empty.
@lbmouse
@lbmouse 6 жыл бұрын
I was talking about just the SP code. I have pushed my department to store batch and script files into our local GIT repo. I'm even implementing Word and other procedure docs (even mainframe card members).
@oysteinsoreide4323
@oysteinsoreide4323 2 жыл бұрын
you can manually add all your procedure scripts to source control. No extra cost except that the source control commands must be done from outside of management studio.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
This should make life easier for you: kzbin.info/www/bejne/n5unlHt9rd6ke5Y
@befitmyfriend
@befitmyfriend 6 жыл бұрын
One easy way to add SQL objects (definitions for tables, stored procedures, etc.) to a source code control system is to create a script that exports your SQL object definitions to a directory that is under version control. Every time you make changes to your SQL objects you run the script before you make a commit.
@IAmTimCorey
@IAmTimCorey 6 жыл бұрын
The problem with that is that you either cannot include table update scripts in the directory or you can't run the scripts at every commit. I've not found a good way to do it without having a messy implementation. Usually a process like this lasts for only a few changes before it breaks down.
@rnrao2966
@rnrao2966 3 жыл бұрын
Very informative and useful tutorials Tim...
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thank you for sharing and your support!
@florent9555
@florent9555 2 жыл бұрын
42:28 As far as I know you can execute custom sql since ef 5 or so. I believe the call was context.Database.SQLQuery where you insert your sql query as a string for example
@michaelshepherdmunemo4414
@michaelshepherdmunemo4414 2 жыл бұрын
Thank you Sir! All your Videos are informative and helpful
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@sick911
@sick911 3 жыл бұрын
Hello Tim I have been watching your videos for a couple of weeks now. Thank you for creating great content and make it easy to understand.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
That has always been Tim's goal. Please check out his full channel - kzbin.info/door/-ptWR16ITQyYOglXyQmpzw
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@francisf.amunde2619
@francisf.amunde2619 3 жыл бұрын
Thank you so very Much Tim. You have contributed so much to my career, truly i can't thank you enough, though i am yet having not much enough to subscribe to your paid programs and articles, i am looking forward to someday. This video is great, i often used Stored Procedures in my code but i found them to be time consuming and extra work to face so i began to do more of the unsecure query, query thing you know... but with this video, i think i will redirect my energy towards understanding it more and leverage on its benefits. Once again, Tim, Thank you a ton.
@samrawitdegu2882
@samrawitdegu2882 2 жыл бұрын
Thank you so much for your brief explanation.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
You are welcome.
@bridgetu9892
@bridgetu9892 4 жыл бұрын
Thank you so much for this tutorial. Concepts are so much clearer.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You're very welcome!
@linojrasmolo7161
@linojrasmolo7161 2 жыл бұрын
Hi Tim, im a fresh IT graduate and started learning C# language. I loved watching your videos because you just dont show how to do it but also you explain how it works. By the way in terms of security, do you have a videos where you show how to validate user inputs from client side just just before accessing to a database. Thanks.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Not specifically, but that sounds like a good suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
@linojrasmolo7161
@linojrasmolo7161 2 жыл бұрын
I will. Thanks.
@MrPlamor
@MrPlamor 2 жыл бұрын
You the best Tim , so much love.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@andreisipos2535
@andreisipos2535 4 жыл бұрын
Your videos/tutorials are very useful. Thank you for your work!
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome.
@OMNS777
@OMNS777 3 жыл бұрын
Always a delight and informative videos Tim :)
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Great!
@hixamjocular6591
@hixamjocular6591 5 жыл бұрын
Hi Tim I just want to tell you're great developer really Thank you
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
I appreciate the kind words.
@rafaelperes6333
@rafaelperes6333 3 жыл бұрын
This great video needs a sequel (pun intended) for advanced use of Stored Procedures.
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Thank you. I have added this to Tim's list of possible future topics.
@donaldputout519
@donaldputout519 5 жыл бұрын
Clear and efficient explanations. One of the best tutorial I saw till now on this subject. Thank's very much!
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
You are most welcome. Thanks for watching.
@mohamedwasim3686
@mohamedwasim3686 3 жыл бұрын
Thank you Tim.. I aslo would like to use ADO instead Entity framework like you.
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@neoanderson7962
@neoanderson7962 5 жыл бұрын
This is a great video. Excellent work as usual Tim Corey.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
Thank you!
@houstonvanhoy7767
@houstonvanhoy7767 2 жыл бұрын
Came for the Stored Procedures, now it seems that I'll need to hang around for the C#. This is one of those times when I wanted a better explanation of one thing and wound up with a (needed) kick in the pants about something else. But I'm taking a deep breath and clearing some time on my calendar. 🤔
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
I'm glad it was helpful.
@deepakbhagat811
@deepakbhagat811 5 жыл бұрын
By far the best sp tutorial i have seen thank you & 1 think i want to mention is we can use visual studio database project template if we want to take an advantage of source control for our database streamline
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
I have a video on that very topic. Thanks for pointing it out.
@KuyaAyotChannel
@KuyaAyotChannel 3 жыл бұрын
Thanks again bro for another informative video. God Bless and Keep Safe.🤘
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@andreaslang2352
@andreaslang2352 4 жыл бұрын
Hi Tim, thanks for sharing your knowledge with your community. Even as an experienced developer you can always find something new while watching your videos, which is really great. About when to use SP: in my opinion it's a question of the environment and how big the database and project is. For rich clients - yes, SP can be a very good option. For client/server - not really, at least not for everything, because the security aspect is obsolete in this case. Also, the bigger your DB and project is, the faster you'll get lost. Imagine you have a DB with hundreds of tables and many more different queries. You don't want to use SP for all of them. But there can be a point where SP makes sense, when you have high complex queries and also you can always mix SP with plain TSQL in your project. So it varies a lot on what you have and what you want to achive. It's not like saying do or don't do. It matters on your project, environment and the effort you're being able to put in.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
The client/server scenario doesn't eliminate the need for security of the connection credentials, it just makes it less vulnerable. Security in depth is important. Yes, if someone gets access to your server, you have a problem but you can limit how much of a problem that will be. Also, getting file access to the server isn't the same thing as logging onto the server but both give you access to the connection string information. As for getting lost in a big project, I don't see the solution there as putting queries in your code. That just means that you have more places to look to find the information you need and it makes it even harder to find. If good naming isn't enough to help you out and good documentation is also failing you, you can develop your server using SQL Server Developer Tools so that you can segment your stored procedures into folders and sub-folders so that you can better organize your objects. This would also work for tables and views. At the end of the day, if your database has enough objects in it to be confusing, spreading out that confusion will not make things better. I do believe that what you do depends on the project, though. I just think there is a heavier weight on taking the secure, optimized route more often and only deviating when you see a significant reason to do so.
@hazlotumismo1419
@hazlotumismo1419 3 жыл бұрын
I think the same, Stored procedures are faster than EF in my personal opinion, but I haven't found a valid post that tells me the same. Anyways.,I enjoyed this video very much, thank you Tim!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 3 жыл бұрын
Hopefully someone can address this based on some testing, one way or the other.
@masterchief7746
@masterchief7746 2 жыл бұрын
hey its amazing to learn from you Tim you are really one of the best teachers out here, i would like to ask you if you can upload a video on how to use stored procedures on the server side with .net 5/6 i used to work with EF before but i think SP really gives you more control and security like you said thanks!!
@tomthelestaff-iamtimcorey7597
@tomthelestaff-iamtimcorey7597 2 жыл бұрын
Please consider posting your recommendation on Tim's suggestion app (suggestions.iamtimcorey.com/). You may find other ideas there that you can vote up.
@esmanmudimu1627
@esmanmudimu1627 5 жыл бұрын
This was very informative Tim. Thank you so much.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
You are welcome.
@manaskumar991
@manaskumar991 4 жыл бұрын
Wow!! Thanks a lot, this lecture was really very informative.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
Glad it was helpful!
@AnkitPrajapatiOfficial
@AnkitPrajapatiOfficial 4 жыл бұрын
Great tutorial, please make video on web chat app. Your explanation is excellent.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I will add it to the list. Thanks for the suggestion.
@jcgaming9749
@jcgaming9749 4 жыл бұрын
Hi Tim, this is a really fantastic video and you do such a great job of clearly explaining everything! I’m currently studying my MCSA 70-461 and this has helped massively! I wonder if you have any videos on Triggers and Transaction Isolation Levels?
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I don't, sorry.
@JimInIssaquah
@JimInIssaquah 5 жыл бұрын
Very informative and useful. I appreciate your candor about EF at the end.
@IAmTimCorey
@IAmTimCorey 5 жыл бұрын
Thanks!
@LuisPerez-ce7fn
@LuisPerez-ce7fn 4 жыл бұрын
thank you so much!! finally a good SQL video
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You're welcome!
@andrewshwets1316
@andrewshwets1316 4 жыл бұрын
Hi Tim, Thank you for great job, this video was very helpful.
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are welcome!
@joseluizdurigon8893
@joseluizdurigon8893 2 жыл бұрын
Tim Corey, i love you man.
@IAmTimCorey
@IAmTimCorey 2 жыл бұрын
Thanks!
@MrFKD
@MrFKD 3 жыл бұрын
thanks a bunch man you've really helped me out
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
You are welcome.
@d-mon666
@d-mon666 3 жыл бұрын
Agreed with Entity framework part. Especially when using dynamic sql or temp table. But no choice we follow client requirement
@IAmTimCorey
@IAmTimCorey 3 жыл бұрын
Yep, that is true.
@KirillBezzubkine
@KirillBezzubkine 4 жыл бұрын
that s crazy awesome. Thank you tons of times. God bless you
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
You are so welcome
@giftphiri4017
@giftphiri4017 4 жыл бұрын
Thanks for your teaching
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
It's my pleasure
@palwan7190
@palwan7190 4 жыл бұрын
May You Live Long So people Like us dont need to worry HATS OFF RESPECTED SIR
@IAmTimCorey
@IAmTimCorey 4 жыл бұрын
I appreciate the kind words.
Intro to T-SQL - The Second Language Every Developer Should Know
1:07:07
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 2,2 МЛН
Каха и лужа  #непосредственнокаха
00:15
Amazing remote control#devil  #lilith #funny #shorts
00:30
Devil Lilith
Рет қаралды 16 МЛН
This Game Is Wild...
00:19
MrBeast
Рет қаралды 140 МЛН
Expert Level SQL Tutorial
23:27
James Oliver
Рет қаралды 157 М.
Stored procedures in sql server   Part 18
20:11
kudvenkat
Рет қаралды 1,5 МЛН
Beginner to T-SQL [Full Course]
2:45:54
Pragmatic Works
Рет қаралды 334 М.
Stored Procedures in MySQL | Advanced MySQL Series
12:37
Alex The Analyst
Рет қаралды 66 М.
Top 10 C# Best Practices (plus bonuses)
57:28
IAmTimCorey
Рет қаралды 512 М.
А я думаю что за звук такой знакомый? 😂😂😂
00:15
Денис Кукояка
Рет қаралды 2,2 МЛН