Stored Procedures are pre-compile objects which are compiled for first time and it's compiled format is saved which executes (compiled code) whenever it is called. But Function is compiled and executed every time when it is called.
One student of me asked "how can we get nth highest and lowest salary on an employee ?". In this article I am going to expose, how can we achieve this in SQL Server.
One student of me asked "how can we get fields name of a table with theirs type and size ?". In this article I am going to expose, how can we achieve this in SQL Server.
Sometimes we required to remove duplicate records from a table although table has a UniqueID Column with identity. In this article, I would like to share a best way to delete duplicate records from a table in SQL Server.
Best performance is the main concern to develop a successful application. Like a coin database is the tail side (back-end) of an application. A good database design provides best performance during data manipulation which results into the best performance of an application.
Suppose, you are sending mail to different-different users by using while loop and you forgot to insert while loop update statement. In this case SQL Server will generate thousands or millions of mail against a specific email address with in a min.
Sometimes we required to generate a comma separated list of columns values like a list of EmailIDs to send mail. In SQL Server, we can make a comma separated list by using COALESCE as shown in below.
Normalization or data normalization is a process to organize the data into tabular format (database tables). A good database design includes the normalization, without normalization a database system may slow, inefficient and might not produce the expected result. Normalization reduces the data redundancy and inconsistent data dependency.
As we know, the cursors are required when we need to update records in a database table in singleton fashion means row by row. A Cursor also impacts the performance of the SQL Server since it uses the SQL Server instance’s memory, reduce concurrency, decrease network bandwidth and lock resources.
Sometimes we have multiple triggers on the same event(s). In that case we can't predict the firing order of triggers. Sometimes the firing order of trigger(s) is important for us to implement business logic. To solve this issue, In SQL Server we have option to set the firing order of triggers on same event(s).
A Cursor allow us to retrieve data from a result set in singleton fashion means row by row. Cursor are required when we need to update records in a database table one row at a time.
A Cursor is a database object to retrieve data from a result set one row at a time, instead of the T-SQL commands that operate on all the rows in the result set at one time. We use cursor when we need to update records in a database table in singleton fashion means row by row.
Recently, I have configured database mail in SQL Server 2008. Here, I am sharing what I have learnt and how did I configure this powerful feature of sending mail in SQL server 2008.
A transaction is a set of T-SQL statements that are executed together as a unit like as a single T-SQL statement. If all of these T-SQL statements executed successfully, then a transaction is committed and the changes made by T-SQL statements permanently saved to database. If any of these T-SQL statements within a transaction fail, then the complete transaction is cancelled/ rolled back.
Like C#, SQL Server also has an exception model to handle exceptions and errors that occurs in T-SQL statements. To handle exception in Sql Server we have TRY..CATCH blocks. We put T-SQL statements in TRY block and to handle exception we write code in CATCH block. If there is an error in code within TRY block then the control will automatically jump to the corresponding CATCH blocks.
It was a great learning experience at dot net tricks from Shailendra Sir. I started the basics and went on to build a complete system, using some best practices in the project, I got all recorded sessions for the same for revision. Again, it was Awesome learning from DNT for ANGULAR JS.Navdeep Singh (Software Engineer) Angular2 and Angular1 Development
"DotNetTricks drew me in and rekindled my passion for MVC including various other technologies like AngularJs, Web API, LINQ and Bootstrap too. If you want to expand your career and focus and learn about all these technologies to the cutting edge, DotNetTricks embodies all these in their online program. I strongly recommend DotNetTricks..!!!"Preeti Jain (Technical Analyst ) ASP.NET MVC with Angular4 Development
"It has been a great learning experience at Dotnettrics. Shailendra is very professional and focuses on concepts until we gain the confidence. All the materials shared are good sources for any level of professionals. Recorded videos do help us to thoroughly understand.Thank your, team, for being supportive and enhancing the teaching concepts based on feedback."NagaDeepti Amirineni (Sr. Net developer/Lead 3M) ASP.NET MVC with Angular4 Development
Amazing Experience with Dot Net Tricks. I have attended the ASP.NET MVC with AngularJS Development course with Project (online training). In my 14 years of my software career I have attended various technical training but the training I got from Mr. Shailendra Chauhan is Superb and Excellent. I can assure that Dot Net Tricks provides the Top Quality Training both in Teaching and Course Material or Content. The teaching techniques of Mr. Shailendra is very Simple, Easy and Unique. Highly recommended to all who are looking for training from Dot Net Tricks.Joydeep Deb ( Co-Founder & Project Manager Izensys Technologies) ASP.NET MVC with Angular4 Development
After attending the "DotNetTricks" training for ASP.NET MVC with AngularJS, I gained much more knowledge in the topic of study, design, and architecture; implemented a project as well. Mr.Shailendra is an excellent trainer; he patiently listens to our queries and answers them well. Also, the topics are arranged in the proper manner; even if you are not that experienced, you can learn it quickly. Most important, they are not chasing you to join the course; they provide a demo class and you can decide. Definitely, I recommend every developer in Microsoft stream to undergo this training.Nebil Rasheed (Sr. Systems Analyst) ASP.NET MVC with Angular4 Development
"DotNetTricks" is truly great E-Learning Organization which provides real time project-based training for professionals. They provide best in-depth knowledge theoretical and practical as well as interview aspect, this training with help to learning new technology and switching new job, improve self-Confidence. Because of their efforts, I am stronger and more flexible in my technology and thanks to "Mr.Shailendra Sir" for his excellent efforts and developments exposure, I recommend them without reservation.Ranveer Singh Godara (Technical Director ) ASP.NET MVC with Angular4 Development
Dot net Tricks is best training Organization for real time software development in new technologies. I visited this Organization and had a demo session and decided that this is a content. Always Shailendra sir answer all the candidate queries and even goes one step further to demo any special scenario requested by the candidates. If you want to repeat a particular session or if you have missed any particular session, Staff of DNT always allow to attend sessions in a different batch. DNT deliver training, which match with industry requirement and real time project development. It was very good experience getting AngularJS Development Training with Dot Net Tricks.Balaindu Pandey (Sr. Software Developer ) ASP.NET MVC with Angular4 Development
As my experience included only on windows side, I wanted to learn and quickly upgrade to web technologies and joined dotnettricks. It was amazing experience with Mr.Shailendra as he covers all the topics in depth and classes are flexible. Even if we miss, we can either take another batch classes or go through recording. In a month and half, I was able to reach proficient level at web technologies (MVC, AngualrJs, Angular 2, WebAPI and many more).Will absolutely recommend to anyone looking for real time, hands on technical training! Also I have joined MEAN now since the training quality is too good and you can learn many things in a month time.Raghavendra SK (Technical Anchor at Prime Focus Technologies) MEAN Stack 2 Development
I was on zero level when I have started my training with DotNetTricks, Today I can say with my confidence that I am an expert on NodeJS and AngularJS technologies. I truly want to say thanks to DotNetTricks for taking me on this Hight in development, I have not been only developing my company project but also, I am capable to help my team to do the same. Especially I want to say Thanks to Mr. Shailendra Chauhan for his technique of teaching and combining concepts with example that the great things about his teaching pedagogy.Shailendra Singh (Software Consultant ) MEAN Stack 2 Development
Shilendera sir given me best opportunity to improve my skills for NodeJS, WCF and MVC.I have learnt real time software development skills on these technologies Dotnettricks provide better environment for improving latest technologies for better career prospect, especially programmer updates their skills to crack interview for next higher level of job.Sarvesh kumar (Sr. software developer) NodeJS Development