Home
Videos uploaded by user “kudvenkat”
Part 33 - C# Tutorial - Difference between abstract classes and interfaces.avi
 
05:15
Text version of the video http://csharp-video-tutorials.blogspot.com/2012/06/part-33-c-tutorial-difference-between.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-33-abstract-classes-vs-interfaces.html All C# Text Articles http://csharp-video-tutorials.blogspot.co.uk/p/free-c-video-tutorial-for-beginners.html All C# Slides http://csharp-video-tutorials.blogspot.com/p/c.html Complete C# tutorial https://www.youtube.com/playlist?list=PLAC325451207E3105 All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this part of the c sharp tutorial we will learn about the differences between abstract classes and interfaces
Views: 309292 kudvenkat
Cross apply and outer apply in sql server
 
08:16
cross apply sql server example sql server outer apply example sql server join table function with parameter sql server inner join table valued function In this video we will discuss cross apply and outer apply in sql server with examples. We want to retrieve all the matching rows between Department and Employee tables. This can be very easily achieved using an Inner Join as shown below. Select D.DepartmentName, E.Name, E.Gender, E.Salary from Department D Inner Join Employee E On D.Id = E.DepartmentId Now if we want to retrieve all the matching rows between Department and Employee tables + the non-matching rows from the LEFT table (Department) This can be very easily achieved using a Left Join as shown below. Select D.DepartmentName, E.Name, E.Gender, E.Salary from Department D Left Join Employee E On D.Id = E.DepartmentId Now let's assume we do not have access to the Employee table. Instead we have access to the following Table Valued function, that returns all employees belonging to a department by Department Id. Create function fn_GetEmployeesByDepartmentId(@DepartmentId int) Returns Table as Return ( Select Id, Name, Gender, Salary, DepartmentId from Employee where DepartmentId = @DepartmentId ) Go The following query returns the employees of the department with Id =1. Select * from fn_GetEmployeesByDepartmentId(1) Now if you try to perform an Inner or Left join between Department table and fn_GetEmployeesByDepartmentId() function you will get an error. Select D.DepartmentName, E.Name, E.Gender, E.Salary from Department D Inner Join fn_GetEmployeesByDepartmentId(D.Id) E On D.Id = E.DepartmentId If you execute the above query you will get the following error Msg 4104, Level 16, State 1, Line 3 The multi-part identifier "D.Id" could not be bound. This is where we use Cross Apply and Outer Apply operators. Cross Apply is semantically equivalent to Inner Join and Outer Apply is semantically equivalent to Left Outer Join. Just like Inner Join, Cross Apply retrieves only the matching rows from the Department table and fn_GetEmployeesByDepartmentId() table valued function. Select D.DepartmentName, E.Name, E.Gender, E.Salary from Department D Cross Apply fn_GetEmployeesByDepartmentId(D.Id) E Just like Left Outer Join, Outer Apply retrieves all matching rows from the Department table and fn_GetEmployeesByDepartmentId() table valued function + non-matching rows from the left table (Department) Select D.DepartmentName, E.Name, E.Gender, E.Salary from Department D Outer Apply fn_GetEmployeesByDepartmentId(D.Id) E How does Cross Apply and Outer Apply work The APPLY operator introduced in SQL Server 2005, is used to join a table to a table-valued function. The Table Valued Function on the right hand side of the APPLY operator gets called for each row from the left (also called outer table) table. Cross Apply returns only matching rows (semantically equivalent to Inner Join) Outer Apply returns matching + non-matching rows (semantically equivalent to Left Outer Join). The unmatched columns of the table valued function will be set to NULL. Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/cross-apply-and-outer-apply-in-sql.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/cross-apply-and-outer-apply-in-sql_8.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 67643 kudvenkat
Closures in JavaScript
 
05:43
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/12/closures-in-javascript.html In this video we will understand closures in JavaScript with an example. What is a closure A closure is an inner function that has access to the outer function’s variables in addition to it's own variables and global variables. The inner function has access not only to the outer function’s variables, but also to the outer function’s parameters. You create a closure by adding a function inside another function. JavaScript Closure Example function addNumbers(firstNumber, secondNumber) { var returnValue = "Result is : "; // This inner function has access to the outer function's variables & parameters function add() { return returnValue + (firstNumber + secondNumber); } return add(); } var result = addNumbers(10, 20); document.write(result); Output : Result is : 30 The following code Returns the inner function expression function addNumbers(firstNumber, secondNumber) { var returnValue = "Result is : "; function add() { return returnValue + (firstNumber + secondNumber); } // We removed the parentheses. This will return the inner function expression without executing it. return add; } // addFunc will contain add() function (inner function) expression. var addFunc = addNumbers(10, 20); // call the addFunc() function and store the return value in result variable var result = addFunc(); document.write(result); Returning and executing the inner function function addNumbers(firstNumber, secondNumber) { var returnValue = "Result is : "; function add() { return returnValue + (firstNumber + secondNumber); } // We removed the parentheses. This will return the inner function add() expression without executing it. return add; } // This returns add() function (inner function) definition and executes it. Notice the additonal parentheses. var result = addNumbers(10, 20)(); document.write(result);
Views: 77098 kudvenkat
Indexes in sql server   Part 35
 
11:14
In this video we will learn about What are indexes Why do we use indexes Advantages of indexes These concepts are applicable to sql server 2000, 2005 and 2008 Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/indexes-in-sql-server-part-35.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-35-indexes.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 350053 kudvenkat
Difference between blocking and deadlocking
 
06:52
deadlock vs blocking sql server In this video we will discuss the difference between blocking and deadlocking. This is one of the common SQL Server interview question. Let us understand the difference with an example. SQL Script to create the tables and populate them with test data Create table TableA ( Id int identity primary key, Name nvarchar(50) ) Go Insert into TableA values ('Mark') Go Create table TableB ( Id int identity primary key, Name nvarchar(50) ) Go Insert into TableB values ('Mary') Go Blocking : Occurs if a transaction tries to acquire an incompatible lock on a resource that another transaction has already locked. The blocked transaction remains blocked until the blocking transaction releases the lock. Example : Open 2 instances of SQL Server Management studio. From the first window execute Transaction 1 code and from the second window execute Transaction 2 code. Notice that Transaction 2 is blocked by Transaction 1. Transaction 2 is allowed to move forward only when Transaction 1 completes. --Transaction 1 Begin Tran Update TableA set Name='Mark Transaction 1' where Id = 1 Waitfor Delay '00:00:10' Commit Transaction --Transaction 2 Begin Tran Update TableA set Name='Mark Transaction 2' where Id = 1 Commit Transaction Deadlock : Occurs when two or more transactions have a resource locked, and each transaction requests a lock on the resource that another transaction has already locked. Neither of the transactions here can move forward, as each one is waiting for the other to release the lock. So in this case, SQL Server intervenes and ends the deadlock by cancelling one of the transactions, so the other transaction can move forward. Example : Open 2 instances of SQL Server Management studio. From the first window execute Transaction 1 code and from the second window execute Transaction 2 code. Notice that there is a deadlock between Transaction 1 and Transaction 2. -- Transaction 1 Begin Tran Update TableA Set Name = 'Mark Transaction 1' where Id = 1 -- From Transaction 2 window execute the first update statement Update TableB Set Name = 'Mary Transaction 1' where Id = 1 -- From Transaction 2 window execute the second update statement Commit Transaction -- Transaction 2 Begin Tran Update TableB Set Name = 'Mark Transaction 2' where Id = 1 -- From Transaction 1 window execute the second update statement Update TableA Set Name = 'Mary Transaction 2' where Id = 1 -- After a few seconds notice that one of the transactions complete -- successfully while the other transaction is made the deadlock victim Commit Transaction Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/difference-between-blocking-and.html
Views: 66155 kudvenkat
SQL Server deadlock example
 
05:14
Text version of the video http://csharp-video-tutorials.blogspot.com/2015/08/sql-server-deadlock-example.html Slides http://csharp-video-tutorials.blogspot.com/2015/08/sql-server-deadlock-example_25.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists When can a deadlock occur In a database, a deadlock occurs when two or more processes have a resource locked, and each process requests a lock on the resource that another process has already locked. Neither of the transactions here can move forward, as each one is waiting for the other to release the lock. When deadlocks occur, SQL Server will choose one of processes as the deadlock victim and rollback that process, so the other process can move forward. The transaction that is chosen as the deadlock victim will produce the following error. Msg 1205, Level 13, State 51, Line 1 Transaction (Process ID 57) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction. SQL script to create the tables and populate them with test data Create table TableA ( Id int identity primary key, Name nvarchar(50) ) Go Insert into TableA values ('Mark') Go Create table TableB ( Id int identity primary key, Name nvarchar(50) ) Go Insert into TableB values ('Mary') Go The following 2 transactions will result in a dead lock. Open 2 instances of SQL Server Management studio. From the first window execute Transaction 1 code and from the second window execute Transaction 2 code. -- Transaction 1 Begin Tran Update TableA Set Name = 'Mark Transaction 1' where Id = 1 -- From Transaction 2 window execute the first update statement Update TableB Set Name = 'Mary Transaction 1' where Id = 1 -- From Transaction 2 window execute the second update statement Commit Transaction -- Transaction 2 Begin Tran Update TableB Set Name = 'Mark Transaction 2' where Id = 1 -- From Transaction 1 window execute the second update statement Update TableA Set Name = 'Mary Transaction 2' where Id = 1 -- After a few seconds notice that one of the transactions complete -- successfully while the other transaction is made the deadlock victim Commit Transaction Next Video : We will discuss the criteria SQL Server uses to choose a deadlock victim
Views: 55406 kudvenkat
Part 32 - C# Tutorial - Abstract classes in c#.avi
 
09:50
In this part of the c sharp tutorial we will learn about abstract classes Text version of the video http://csharp-video-tutorials.blogspot.com/2012/06/part-32-c-tutorial-abstract-classes.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-32-abstract-classes.html All C# Text Articles http://csharp-video-tutorials.blogspot.co.uk/p/free-c-video-tutorial-for-beginners.html All C# Slides http://csharp-video-tutorials.blogspot.com/p/c.html Complete C# tutorial https://www.youtube.com/playlist?list=PLAC325451207E3105 All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 267609 kudvenkat
JavaScript closure example
 
06:58
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2014/12/javascript-closure-example.html In this video we will discuss a simple JavaScript closure example. Every time we click a button on a web page, we want to increment the click count by 1. There are several ways we can do this. Using a global variable and incrementing it everytime we click the button : The problem with this approach is that, since clickCount is a global variable any script on the page can accidentally change the variable value. [script type="text/javascript"] var clickCount = 0; [/script] [input type="button" value="Click Me" onclick="alert(++clickCount);" /] Using a local variable with in a function and incrementing it by calling the function : The problem with this approach is that, click count is not incremented beyond 1, no matter how many times you click the button. [script type="text/javascript"] function incrementClickCount() { var clickCount = 0; return ++clickCount; } [/script] [input type="button" value="Click Me" onclick="alert(incrementClickCount());" /] Using a JavaScript closure : A closure is an inner function that has access to the outer function’s variables in addition to it's own variables and global variables. In simple terms a closure is function inside a function. These functions, that is the inner and outer functions could be named functions or anonymous functions. In the example below we have an anonymous function inside another anonymous function. The variable incrementClickCount is assigned the return value of the self invoking anonymous function. [script type="text/javascript"] var incrementClickCount = (function () { var clickCount = 0; return function () { return ++clickCount; } })(); [/script] [input type="button" value="Click Me" onclick="alert(incrementClickCount);" /] In the example above, in the alert function we are calling the variable incrementClickCount without parentheses. At this point, when you click the button, you get the inner anonymous function expression in the alert. The point I want to prove here is that, the outer self-invoking anonymous function run only once and sets clickCount variable to ZERO, and returns the inner function expression. Inner function has access to clickCount variable. Now every time we click the button, the inner function increments the clickCount variable. The important point to keep in mind is that no other script on the page has access to clickCount variable. The only way to change the clickCount variable is thru incrementClickCount function. [script type="text/javascript"] var incrementClickCount = (function () { var clickCount = 0; return function () { return ++clickCount; } })(); [/script] [input type="button" value="Click Me" onclick="alert(incrementClickCount());" /]
Views: 75515 kudvenkat
Part 6  ViewData and ViewBag in mvc
 
06:19
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/04/part-6-viewdata-and-viewbag-in-mvc.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-6-view-data-and-view-bag-in-mvc.html All ASP .NET MVC Text Articles http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-tutorial-for-beginners.html All ASP .NET MVC Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-mvc-slides.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss 1. What is ViewData 2. What is ViewBag 3. Difference between ViewData and ViewBag Both ViewData and ViewBag are used to pass data from a controller to a view. ViewData is a dictionary of objects that are stored and retrieved using strings as keys. The syntax of ViewData is very similar to that of ViewState, SessionState and ApplicationState. // Storing data in ViewData ViewData["YourData"] = "SomeData"; // Retrieving data from ViewData string strData = ViewData["YourData"].ToString(); ViewData does not provide compile time error checking. For example, if you mis-spell the key names you wouldn't get any compile time error. You get to know about the error only at runtime. ViewBag uses the dynamic feature that was introduced in to C# 4. It allows an object to have properties dynamically added to it. Using ViewBag the above code can be rewritten as below. // Storing data in ViewBag ViewBag.YourData = "SomeData"; // Retrieving data from ViewBag string strData = ViewBag.YourData; Just like ViewData, ViewBag does not provide compile time error checking. For example, if you mis-spell the property name, you wouldn't get any compile time error. You get to know about the error only at runtime. Internally ViewBag properties are stored as name/value pairs in the ViewData dictionary. Please Note: To pass data from controller to a view, It's always a good practice to use strongly typed view models instead of using ViewBag & ViewData. Strongly typed view models provide compile time error checking. We will discuss view models in a later video session.
Views: 423662 kudvenkat
Part 1   Introduction to WCF
 
10:09
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/11/part-1-introduction-to-wcf.html Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists In this video we will discuss What is WCF Why should we use WCF What is WCF? WCF stands for Windows Communication Foundation and is part of .NET 3.0. WCF is Microsoft platform for building distributed and interoperable applications. What is a distributed application? In simple terms a distributed application, is an application where parts of it run on 2 or more computers. Distributed applications are also called as connected systems or applications. Examples: A web application running on one machine and a web service that this application is consuming is running on another machine. An enterprise web application may have the following tiers, and each tier may be running on a different machine 1. Presentation tier 2. Business tier 3. Data Access tier Why build distributed applications? There are several reasons for this 1. An enterprise application may need to use the services provided by other enterprises. For example an ecommerce application may be using paypal service for payments. 2. For better scalability. An enterprise web application may have Presentation tier, Business tier, and Data Access tiert, and each tier may be running on a different machine. What is an interoperable application? An application that can communicate with any other application that is built on any platform and using any programming language is called as an interoperable application. Web services are interoperable, where as .NET remoting services are not. Web services can communicate with any application built on any platform, where as a .NET remoting service can be consumed only by a .net application. What technology choices did we have before WCF to build distributed applications? Enterprise Services Dot Net Remoting Web Services Why should we use WCF? Let's take this scenario We have 2 clients and we need to implement a service a for them. 1. The first client is using a Java application to interact with our service, so for interoperability this client wants messages to be in XML format and the protocol to be HTTP. 2. The second client uses .NET, so for better performance this client wants messages formmated in binary over TCP protocol. Without WCF 1. To satisfy the first client requirement we end up implementing an ASMX web service, and 2. To satisfy the second client requirement we end up implementing a remoting service These are 2 different technologies, and have complete different programming models. So the developers have to learn different technologies. So to unify and bring all these technologies under one roof Microsoft has come up with a single programming model that is called as WCF - Windows Communication Foundation. With WCF, You implement one service and we can configure as many end points as want to support all the client needs. To support the above 2 client requirements, we would configure 2 end points. In the endpoint configuration we can specify the protocols and message formats that we want to use. In Part 2, we will discuss implementing 1. A web service to exchange messages in XML format using HTTP protocol for interoperability. 2. A remoting service to exchange messages in binary format using TCP protocol for performance. Along the way, we will get a feel of how different these technologies are. In Part 3, we will dicuss implementing a single WCF Service and configuring different end points to support different transport protocols and message formats.
Views: 725733 kudvenkat
Difference between where and having in sql server
 
06:36
sql server where vs having sql server group by where having group by having sql server In this vide we will discuss the difference between where and having caluses in sql server. Let us understand the difference with an example. To calculate total sales by product, we would write a GROUP BY query as shown below SELECT Product, SUM(SaleAmount) AS TotalSales FROM Sales GROUP BY Product Now if we want to find only those products where the total sales amount is greater than $1000, we will use HAVING clause to filter products SELECT Product, SUM(SaleAmount) AS TotalSales FROM Sales GROUP BY Product HAVING SUM(SaleAmount) ] 1000 If we use WHERE clause instead of HAVING clause, we will get a syntax error. This is because the WHERE clause doesn’t work with aggregate functions like sum, min, max, avg, etc. SELECT Product, SUM(SaleAmount) AS TotalSales FROM Sales GROUP BY Product WHERE SUM(SaleAmount) ] 1000 So in short, the difference is WHERE clause cannot be used with aggregates where as HAVING can. However, there are other differences as well that we need to keep in mind when using WHERE and HAVING clauses. WHERE clause filters rows before aggregate calculations are performed where as HAVING clause filters rows after aggregate calculations are performed. Let us understand this with an example. Total sales of iPhone and Speakers can be calculated by using either WHERE or HAVING clause Calculate Total sales of iPhone and Speakers using WHERE clause : In this example the WHERE clause retrieves only iPhone and Speaker products and then performs the sum. SELECT Product, SUM(SaleAmount) AS TotalSales FROM Sales WHERE Product in ('iPhone', 'Speakers') GROUP BY Product Calculate Total sales of iPhone and Speakers using HAVING clause : This example retrieves all rows from Sales table, performs the sum and then removes all products except iPhone and Speakers. SELECT Product, SUM(SaleAmount) AS TotalSales FROM Sales GROUP BY Product HAVING Product in ('iPhone', 'Speakers') So from a performance standpoint, HAVING is slower than WHERE and should be avoided when possible. Another difference is WHERE comes before GROUP BY and HAVING comes after GROUP BY. Difference between WHERE and Having 1. WHERE clause cannot be used with aggregates where as HAVING can. This means WHERE clause is used for filtering individual rows where as HAVING clause is used to filter groups. 2. WHERE comes before GROUP BY. This means WHERE clause filters rows before aggregate calculations are performed. HAVING comes after GROUP BY. This means HAVING clause filters rows after aggregate calculations are performed. So from a performance standpoint, HAVING is slower than WHERE and should be avoided when possible. 3. WHERE and HAVING can be used together in a SELECT query. In this case WHERE clause is applied first to filter individual rows. The rows are then grouped and aggregate calculations are performed, and then the HAVING clause filters the groups. Text version of the video http://csharp-video-tutorials.blogspot.com/2015/09/difference-between-where-and-having-in.html Slides http://csharp-video-tutorials.blogspot.com/2015/09/difference-between-where-and-having-in_15.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html Full SQL Server Course https://www.youtube.com/playlist?list=PL4cyC4G0M1RQ_Rm52cQ4CcOJ_T_HXeMB4 All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 62155 kudvenkat
How to become asp net developer
 
02:34
http://csharp-video-tutorials.blogspot.com/2014/09/how-to-become-aspnet-developer.html In this video we will discuss all that you need to know to become a successful asp.net web application developer Essential skills : The following are the essential skills that you need to learn in the order specified to become a web developer 1. Dot Net Basics : Learn what is Dot Net all about and how it works. All dot net developers, irrespective of whether you are a web or windows developer, need to know about these concepts. 2. One Programming language (C# or VB.NET) : You must learn at least on of the programming language (C# or VB.NET) to build dynamic data driven web applications. These videos start from the basics and covers all the advanced aspects of c# programming language that an asp.net web developer needs to know. 3. SQL Server : SQL Server is a database that stores the web application data. You need to learn the SQL programming language to store and retrieve data from the database server, which helps us build data driven web application. 4. ASP.NET : This is the framework that .NET provides to build web applications. 5. ADO.NET : Enables an asp.net web application to communicate with the database to store and retrieve data. 6. ASP.NET GridView - This is one of the widely used data control in an asp.net web application that enables to display, insert, update and delete data. 7. Visual Studio - This is the development tool/software that we use to build Dot Net applications. In addition to the above 7 essential skills, you also need to know the basics of HTML. HTML is very easy to self learn and there are many free resources on the web already. Nice to have skills : These days a lot of organisations are also looking for the following skills in addtion to the above essential skills. If you want to increase the chances of getting your resume shortlisted for an interview call, then you also need to be familiar (if not proficient) with the following technologies. 1. ASP.NET Web Services : ASP.NET Web Services became a legacy technology with the introduction of WCF. However, there are many organisations that are still using ASP.NET web services, so if you want to increase your chances of an interview call you may want to learn this technology as well. Also, learning asp.net web services, makes it easy to learn WCF. 2. WCF : Helps buils service oriented applications. If you are familiar with this and if you can answer the interview questions you almost have the job. 3. ASP.NET MVC - Gives you a powerful, patterns-based way to build dynamic websites that enables a clean separation of concerns and that gives you full control. 3. Entity Framework : This is an ORM framework that enables .NET developers to work with relational data using domain-specific objects. Another nice to have skill. 4. LINQ - Language-Integrated Query (LINQ) is a set of features introduced in Visual Studio 2008 that extends powerful query capabilities to the language syntax of C# and Visual Basic. The different aspects of LINQ are covered in the following tutorials. LINQ LINQ to XML LINQ to SQL In addition to the above 4 nice to have skills, you also need to know jQuery. I don't have a video series on this yet, but there are several resources on the web already. To help you with your interview preparation, I have also started several video series as listed below. C# Interview Questions & Answers Dot Net Written Test Questions & Answers SQL Server Interview Questions & Answers Slides, code samples and text version of the videos are available on my blog. http://csharp-video-tutorials.blogspot.com All these resources are available at no cost. In total there are over 700 videos (150 Hours). This means if you spend 5 hours a day watching these videos in 30 days you have most of the skills required to become a successful asp.net web developer. If you need a video on a concept that you are struggling with or if you have attended an interview and if you need a question to be answered, please leave it as a comment and I shall record and upload video answering it as soon as I can. If you need a DVD with all the videos and slides or if you need to download the videos for offline viewing, please visit the following link. http://pragimtech.com/order.aspx Finally if you feel these videos could help others like you please share on Facebook, Google+ and any other social media you use. Enjoy Coding Venkat
Views: 117061 kudvenkat
Clustered and nonclustered indexes in sql server   Part 36
 
16:49
In this video we will learn about 1. Different types of indexes in sql server 2. What are clustered indexes 3. What are NonClustered indexes 4. Difference between clustered and non clustered indexes Text version of the video http://csharp-video-tutorials.blogspot.co.uk/2012/09/clustered-and-non-clustered-indexes.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-36-clustered-nonclustered-indexes.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 430639 kudvenkat
Database normalization   Part 52
 
12:11
In this video we will learn about, database normalization, different normal forms, problems of data redundancy, first normal form, that is how to put a table in 1 NF. Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/database-normalization-part-52.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-52-normalization.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 174445 kudvenkat
Correlated subquery in sql   Part 60
 
07:59
In this video we will discuss about Corelated Subqueries In Part 59, we discussed about 2 examples that uses subqueries. Please watch Part 59, before proceeding with this video. We will be using the same tables and queries from Part 59. In the example below, sub query is executed first and only once. The sub query resutls are then used by the outer query. In a non-corelated subquery, the subquery can be executed independently of the outer query. Select [Id], [Name], [Description] from tblProducts where Id not in (Select Distinct ProductId from tblProductSales) If the subquery depends on the outer query for its values, then that sub query is called as a correlated subquery. In the where clause of the subquery below, "ProductId" column get it's value from tblProducts table that is present in the outer query. So, here the subquery is dependent on the outer query for it's value, hence this subquery is a correlated subquery. Correlated subqueries get executed, once for every row that is selected by the outer query. corelated subquery, cannot be executed independently of the outer query. Select [Name], (Select SUM(QuantitySold) from tblProductSales where ProductId = tblProducts.Id) as TotalQuantity from tblProducts order by Name Text version of the video http://csharp-video-tutorials.blogspot.com/2013/01/correlated-subquery-in-sql-part-60.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-60-co-related-subqueries.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 119771 kudvenkat
AngularJS tutorial -  What is AngularJS
 
10:28
AngularJS tutorial - What is AngularJS In this video we will discuss What is AngularJS Benefits of AngularJS A simple AngularJS example What is AngularJS AngularJS is a JavaScript framework that helps build applications that run in a web browser. Who developed AngularJS Google is the company that developed AngularJS. AngularJS is an open source project, which means it can be be freely used, changed, and shared by anyone. AngularJS is an excellent framework for building both Single Page Applications (SPA) and Line of Business Applications. Many companies are using Angular today, and there are many public facing web sites that are built with angular. There is a website, https://www.madewithangular.com, that has the list of web sites that are built using AngularJS. Within this list you can find many popular websites. What are the benefits of using AngularJS 1. Dependency Injection : Dependency Injection is something AngularJS does quite well. If you are new to Dependency Injection, don't worry, we will discuss it in detail with examples in a later video. 2. Two Way Data-Binding : One of the most useful feature in AngularJS is the Two Way Data-Binding. The Two Way Data-Binding, keeps the model and the view in sync at all times, that is a change in the model updates the view and a change in the view updates the model. 3. Testing : Testing is an area where Angular really shines. Angular is designed with testing in mind right from the start. Angular makes it very easy to test any of it's components through both unit testing and end to end testing. So there's really no excuse for not testing any of your angular application code. 4. Model View Controller : With angular it is very easy to develop applications in a clean MVC way. All you have to do is split your application code into MVC components. The rest, that is managing those components and connecting them together is done by angular. 5. Many more benefits like controlling the behaviour of DOM elements using directives and the flexibility that angular filters provide. We will discuss directives, filters, Modules, Routes etc with examples in our upcoming videos in this series. To build angular applications you only need one script file and that is angular.js. To get the script file visit https://angularjs.org. From here 1. You can download the angular script file 2. CDN link - We discussed the benefits of using CDN in Part 3 of jQuery tutorial. 3. Various resources to learn angular - Here you will find videos, Free courses, Tutorials and Case Studies. You will also find API reference which is extremeley useful. To get started with angular 1. Add a reference to the angular script 2. Include ng-app attribute What is ng-app In angular, ng-app is called a directive. There are many directives in angular. You can find the complete list of directives on https://angularjs.org. The ng prefix in the directive stands for angular. The ng-app directive is a starting point of AngularJS Application. Angular framework will first check for ng-app directive in an HTML page after the entire page is loaded. If ng-app directive is found, angular bootstraps itself and starts to manage the section of the page that has the ng-app directive. So the obvious next question is, where to place the ng-app directive on the page It should be placed at the root of the HTML document, that is at the [html] tag level or at the [body] tag level, so that angular can control the entire page. However, there is nothing stopping you from placing it on any other HTML element with in the page. When you do this only that element and it's children are managed by angular. Double curly braces are called binding expressions in angular. These All the following are valid expressions in angular {{ 1 == 1 }} - Evaluates to true {{ { name: 'David', age : '30' }.name }} - Returns the name property value {{ ['Mark', 'David', 'Sara'][2] }} - Returns the 2nd element from the array Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/what-is-angularjs.html
Views: 1598330 kudvenkat
Part 71   childactiononly attribute in mvc
 
12:02
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/08/part-71-childactiononly-attribute-in-mvc.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists In this video, we will discuss childactiononly attribute in asp.net mvc. Let us understand this with an example. Step 1: Create a blank asp.net mvc 4 application Step 2: Add HomeController. Copy and paste the following code. public class HomeController : Controller { // Public action method that can be invoked using a URL request public ActionResult Index() { return View(); } // This method is accessible only by a child request. A runtime // exception will be thrown if a URL request is made to this method [ChildActionOnly] public ActionResult Countries(List[String] countryData) { return View(countryData); } } Step 3: Right click on the "Countries()" action method and add "Countries" view. This view will render the given list of strings as an un-ordered list. @model List[string] @foreach (string country in Model) { [ul] [li] [b] @country [/b] [/li] [/ul] } Step 4: Right click on the "Index()" action method and add "Index" view. Copy and paste the following code. Notice that, to invoke childaction, we are using Action() HTML Helper. [h2]Countries List[/h2] @Html.Action("Countries", new { countryData = new List[string]() { "US", "UK", "India" } }) Please Note: Child actions can also be invoked using "RenderAction()" HTMl helper as shown below. @{ Html.RenderAction("Countries", new { countryData = new List[string]() { "US", "UK", "India" } }); } We discussed the difference between Action() and RenderAction() in Part XX of MVC Tutorial series. Points to remember about "ChildActionOnly" attribute 1. Any action method that is decorated with [ChildActionOnly] attribute is a child action method. 2. Child action methods will not respond to URL requests. If an attempt is made, a runtime error will be thrown stating - Child action is accessible only by a child request. 3. Child action methods can be invoked by making child request from a view using "Action()" and "RenderAction()" html helpers. 4. An action method doesn't need to have [ChildActionOnly] attribute to be used as a child action, but use this attribute to prevent if you want to prevent the action method from being invoked as a result of a user request. 5. Child actions are typically associated with partial views, although this is not compulsory. 6. Child action methods are different from NonAction methods, in that NonAction methods cannot be invoked using Action() or RenderAction() helpers. We discussed NonAction methods in Part 70 of ASP.NET MVC tutorial series. 7. Using child action methods, it is possible to cache portions of a view. This is the main advantage of child action methods. We will cover this when we discuss [OutputCache] attribute. Make sure to replace [ with LESSTHAN and ] with GREATERTHAN symbol.
Views: 77423 kudvenkat
Part 22 - C# Tutorial - Method hiding in c#.avi
 
12:03
Text version of the video http://csharp-video-tutorials.blogspot.com/2012/06/part-22-c-tutorial-method-hiding-in-c.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-22-method-hiding-in-c.html All C# Text Articles http://csharp-video-tutorials.blogspot.co.uk/p/free-c-video-tutorial-for-beginners.html All C# Slides http://csharp-video-tutorials.blogspot.com/p/c.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this part of the c sharp tutorial we will learn 1. Method hiding 2. Invoke hidden base class members
Views: 252781 kudvenkat
Part 3   Why and when should we use an abstract class
 
20:29
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/09/part-3-why-and-when-should-we-use.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists This question can also be asked in a slightly different way Give an example of where we could use an abstract class? Let us understand when to use an abstract class with an example. An organisation has 2 types of employees 1. FullTimeEmployee 2. ContractEmployee We would create an abstract class, when want to move the common functionality of 2 or more related classes into a base class and when, we don't want that base class to be instantiated.
Views: 463537 kudvenkat
C# abstract class virtual method
 
04:57
Text version of the video http://csharp-video-tutorials.blogspot.com/2016/10/c-abstract-class-virtual-method.html Slides http://csharp-video-tutorials.blogspot.com/2016/10/c-abstract-class-virtual-method_24.html All C# Interview Questions Text Articles & Slides http://csharp-video-tutorials.blogspot.com/p/c-interview-questions.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 53596 kudvenkat
Difference between rank dense rank and row number in SQL
 
04:43
row_number vs rank vs dense_rank in sql server dense_rank vs rank vs row_number sql server rank dense_rank row_number in sql server In this video we will discuss the similarities and difference between RANK, DENSE_RANK and ROW_NUMBER functions in SQL Server. Similarities between RANK, DENSE_RANK and ROW_NUMBER functions Returns an increasing integer value starting at 1 based on the ordering of rows imposed by the ORDER BY clause (if there are no ties) ORDER BY clause is required PARTITION BY clause is optional When the data is partitioned, the integer value is reset to 1 when the partition changes SQL Script to create the Employees table Create Table Employees ( Id int primary key, Name nvarchar(50), Gender nvarchar(10), Salary int ) Go Insert Into Employees Values (1, 'Mark', 'Male', 6000) Insert Into Employees Values (2, 'John', 'Male', 8000) Insert Into Employees Values (3, 'Pam', 'Female', 4000) Insert Into Employees Values (4, 'Sara', 'Female', 5000) Insert Into Employees Values (5, 'Todd', 'Male', 3000) Notice that no two employees in the table have the same salary. So all the 3 functions RANK, DENSE_RANK and ROW_NUMBER produce the same increasing integer value when ordered by Salary column. SELECT Name, Salary, Gender, ROW_NUMBER() OVER (ORDER BY Salary DESC) AS RowNumber, RANK() OVER (ORDER BY Salary DESC) AS [Rank], DENSE_RANK() OVER (ORDER BY Salary DESC) AS DenseRank FROM Employees You will only see the difference when there ties. Now let's include duplicate values for Salary column. To do this First delete existing data from the Employees table DELETE FROM Employees Insert new rows with duplicate valuse for Salary column Insert Into Employees Values (1, 'Mark', 'Male', 8000) Insert Into Employees Values (2, 'John', 'Male', 8000) Insert Into Employees Values (3, 'Pam', 'Female', 8000) Insert Into Employees Values (4, 'Sara', 'Female', 4000) Insert Into Employees Values (5, 'Todd', 'Male', 3500) Notice 3 employees have the same salary 8000. When you execute the following query you can clearly see the difference between RANK, DENSE_RANK and ROW_NUMBER functions. SELECT Name, Salary, Gender, ROW_NUMBER() OVER (ORDER BY Salary DESC) AS RowNumber, RANK() OVER (ORDER BY Salary DESC) AS [Rank], DENSE_RANK() OVER (ORDER BY Salary DESC) AS DenseRank FROM Employees Difference between RANK, DENSE_RANK and ROW_NUMBER functions ROW_NUMBER : Returns an increasing unique number for each row starting at 1, even if there are duplicates. RANK : Returns an increasing unique number for each row starting at 1. When there are duplicates, same rank is assigned to all the duplicate rows, but the next row after the duplicate rows will have the rank it would have been assigned if there had been no duplicates. So RANK function skips rankings if there are duplicates. DENSE_RANK : Returns an increasing unique number for each row starting at 1. When there are duplicates, same rank is assigned to all the duplicate rows but the DENSE_RANK function will not skip any ranks. This means the next row after the duplicate rows will have the next rank in the sequence. Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/difference-between-rank-denserank-and.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/difference-between-rank-denserank-and_2.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 37738 kudvenkat
Part 146   Why use master pages in asp net
 
05:34
Text version of the video http://csharp-video-tutorials.blogspot.com/2013/10/part-146-why-use-master-pages-in-aspnet.html Slides http://csharp-video-tutorials.blogspot.com/2013/11/part-146-why-use-master-pages-in-aspnet.html All ASP .NET Text Articles http://csharp-video-tutorials.blogspot.com/p/free-aspnet-video-tutorial.html All ASP .NET Slides http://csharp-video-tutorials.blogspot.com/p/aspnet-slides.html ASP.NET Playlist https://www.youtube.com/playlist?list=PL4cyC4G0M1RQcB4IYS_zwkyBwMyx5AnDM All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists It is common for a web site to have a consistent look and behaviuor across all the pages in the web application. To have a common layout across all our pages, without the use of master pages. There are 2 options Option 1: Copy and paste the required HTML across all pages in the application The following are the problems with this approach 1. We have lot of duplicated HTML on every page 2. If we have to change something in the common layout, we will have to make the change in all the pages, which is time consuming and error prone. Option 2: Implement the layout using the following user controls. 1. Header user control 2. Menu user control 3. Footer user control The following are the problems with using user controls 1. We will end up with complicated HTML and CSS if we have to design the layout similar to the one in the above image 2. All the user controls have to be manually added on each and every page of the site So, the best approach to have a consistent look and feel across all pages in a web application is to use master pages. We will discuss master pages in our next video.
Views: 64008 kudvenkat
Part 10   What happens if finally block throws an exception
 
06:02
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/10/part-10-what-happens-if-finally-block.html Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists This question can also be asked in a slightly different way How to handle exceptions that occur in finally block The exception propagates up, and should be handled at a higher level. If the exception is not handled at the higher level, the application crashes. The "finally" block execution stops at the point where the exception is thrown. In the example below, notice that the "finally" block in "Hello()" method throws an exception. Hello() method is being called in the Main() method and we don't have any exception handling mechanism in place in the Main() method. So, the application crashes with the exception. public class Program { public static void Main() { Hello(); } public static void Hello() { try { // Some code } catch { // Some code } finally { Console.WriteLine("This line will be executed"); int result = Convert.ToInt32("TEN"); Console.WriteLine("This line will NOT be executed"); } } } On the other hand, if you include exception handling mechanism(try/catch) in the Main() method, then you will have the opportunity to handle the exception. public static void Main() { try { Hello(); } catch (Exception ex) { // Process and log the exception Console.WriteLine(ex.Message); } } Irrespective of whether there is an exception or not "finally" block is guaranteed to execute. 1. If the "finally" block is being executed after an exception has occurred in the try block, 2. and if that exception is not handled 3. and if the finally block throws an exception Then the original exception that occurred in the try block is lost. Here is an example: public class Program { public static void Main() { try { Hello(); } catch (Exception ex) { Console.WriteLine(ex.Message); } } public static void Hello() { try { // This exception will be lost throw new Exception("Exception in TRY block"); } finally { throw new Exception("Exception in FINALLY block"); } } }
Views: 94116 kudvenkat
Difference between AngularJS, Angular 2 and Angular 4
 
08:01
Text version of the video http://csharp-video-tutorials.blogspot.com/2017/09/difference-between-angularjs-angular-2.html Slides http://csharp-video-tutorials.blogspot.com/2017/09/difference-between-angularjs-angular-2_13.html Angular 2 Tutorial playlist https://www.youtube.com/playlist?list=PL6n9fhu94yhWqGD8BuKuX-VTKqlNBj-m6 Angular 2 Text articles and slides http://csharp-video-tutorials.blogspot.com/2017/06/angular-2-tutorial-for-beginners_12.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists So far Google has released 3 versions of Angular Version Year ------------ ------ AngularJS 2010 Angular 2 2016 Angular 4 2017 What is the difference between AngularJS and Angular 2 The first version of Angular is called AngularJS and was released in the year 2010. Some people call it Angular 1, but it is officially called AngularJS. Angular 2 is released in the year 2016. The most important thing to keep in mind is that, Angular 2 is not a simple upgrade from angular 1. Angular 2 is completely rewritten from the ground up and as a result the way we write applications with AngularJS and Angular 2 is very different. From a performance standpoint, Angular 2 is 5 times faster compared to AngularJS. AngularJS was not built for mobile devices, where as Angular 2 on the other hand is designed from the ground up with mobile support in mind. With Angular 2 we have more language choices. In additon to nativa JavaScript we can use TypeScript, Dart, PureScript, Elm, etc. Angular 4 is released in 2017. So, What is the difference between Angular 2 and Angular 4 If you have worked with both Angular 1 and Angular 2, then you already know that the API's and patterns that we use to build applications are very different between these 2 versions. From a developer stand point, it is like learning 2 different frameworks. Since Angular 2 is a complete rewrite from Angular 1, moving from Angular 1 to Angular 2 is a total breaking change. However, changing from Angular 2 to Angular 4 and even future versions of Angular, won’t be like changing from Angular 1. It won’t be a complete rewrite, it will simply be a change in some core libraries. From a developer standpoint, building an application using Angular 2 and Angular 4 is not very different. We still use the same concepts and patterns. Angular 4 is simply, the next version of Angular 2. The underlying concepts are still the same and if you have already learnt Angular 2 then you’re well prepared to switch to Angular 4. The most important point to keep in mind is, Angular 4 is backwards compatible with Angular 2 for most applications. What has changed and what is new in Angular 4 Some under the hood changes to reduce the size of the AOT (Ahead-of-Time) compiler generated code. Migrating to Angular 4 may reduce the production bundles by hundreds of kilobytes. As a developer this change will not affect the way we write angular applications in any way. TypeScript 2.1 and 2.2 compatibility. Angular is updated with a more recent version of TypeScript, for better type checking throughout our application. Up until Angular 4, only TypeScript 1.8 was supported. With Angular 4, we can use typescript 2.1 or 2.2 which means we can use all the new features of TypeScript with Angular 4. Animation features are pulled out of @angular/core and are moved into their own package. This means that if you don’t use animations, this extra code will not end up in your production bundles. On the other hand, if you do have animations in your application, you may have to change your existing code to pull the animation features from the animations package. We can now use an if/else style syntax with *ngIf structural directive. In Angular 2, to implement if/else logic, we use 2 *ngIf structural directives. With Angular 4, we can use it's new if/else style syntax with *ngIf structural directive. We will discuss an example of this in our upcoming videos. What happened to Angular 3. Why did we move straight from Angular 2 to Angular 4. What is the reason for skipping Angular 3. Except the Router library, all the other Angular core libraries are versioned the same way and are shipped as NPM packages as you can see below. While all the other core angular packages are at Version 2, the router library is already at Version 3. Due to this misalignment of the router package’s version, the angular team decided to go straight for Angular v4. This way, all the core packages are aligned which will be easier to maintain and help avoid confusion in the future. Common Questions Do I have to learn AngularJS 1 before learning Angular 2 Do I have to learn Angular 2 before learning Angular 4
Views: 73136 kudvenkat
Group by in sql server - Part 11
 
17:44
In this video we will learn 1. Grouping rows using GROUP BY 2. Filtering Groups 3. Difference between WHERE and HAVING clause in sql server Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/group-by-part-11.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-11-group-by.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 402501 kudvenkat
FIRST VALUE function in SQL Server
 
02:48
In this video we will discuss FIRST_VALUE function in SQL Server FIRST_VALUE function Introduced in SQL Server 2012 Retrieves the first value from the specified column ORDER BY clause is required PARTITION BY clause is optional Syntax : FIRST_VALUE(Column_Name) OVER (ORDER BY Col1, Col2, ...) FIRST_VALUE function example WITHOUT partitions : In the following example, FIRST_VALUE function returns the name of the lowest paid employee from the entire table. SELECT Name, Gender, Salary, FIRST_VALUE(Name) OVER (ORDER BY Salary) AS FirstValue FROM Employees FIRST_VALUE function example WITH partitions : In the following example, FIRST_VALUE function returns the name of the lowest paid employee from the respective partition. SELECT Name, Gender, Salary, FIRST_VALUE(Name) OVER (PARTITION BY Gender ORDER BY Salary) AS FirstValue FROM Employees Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/firstvalue-function-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/firstvalue-function-in-sql-server_6.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 30998 kudvenkat
What is bootstrap
 
06:28
twitter bootstrap tutorial for beginners twitter bootstrap for beginners benefits of bootstrap framework advantages of bootstrap framework twitter bootstrap benefits what is responsive web design what is responsive website what is responsive design use of bootstrap responsive web development responsive web app In this video we will discuss 1. What is bootstrap 2. Advantages of using bootstrap Bootstrap is a free, open-source and is the most popular HTML, CSS, and JavaScript framework developed by twitter for creating responsive web applications. It includes HTML and CSS based design templates for common user interface components like Buttons, Dropdowns, Typography, Tabs, Forms, Tables, Navigations, Alerts, Modals, Accordion, Carousel etc. along with optional JavaScript extensions. Bootstrap framework is based on open standards - HTML, CSS and JavaScript. This means bootstrap can be used with any server side technology and any platform. You can use it with any web application built with any server side technology like ASP.NET, JAVA, PHP etc. What are the advantages of using bootstrap Supports responsive design : One of the greatest advantages of using bootstrap is that it helps us create responsive web applications faster and easier. So the obvious question that comes to our mind is, what is a responsive web application? A responsive web application automatically adapts to different screen sizes (i.e desktop computers, laptops, tablets. mobile phones etc). A responsive application provides optimal viewing and interaction experience i.e easy reading and navigation with a minimum of resizing, panning, and scrolling across a wide range of devices. So you don't have to worry about your application not being compatible with multiple devices. The images at the following links shows how a responsive and non-responsive application looks like on a mobile device. http://www.webnersolutions.com/wp-content/uploads/2015/08/responsive-vs-non-responsive-web-design1.jpg At the following link is a live responsive application example. Notice as we resize the browser, the content automatically adpats to the screen size. http://bootstrapdocs.com/v3.0.3/docs/examples/jumbotron/ Saves lot of development time : One of the biggest advantages of using Bootstrap is that it saves lot of development time. Instead of writing code from the scratch, bootstrap offers ready made blocks of code that you can use and customize to suit your application requirements. There are also many websites out there that offer free and paid Bootstrap themes that saves even more development time. Consistency : Bootstrap was developed by Twitter to encourage consistency across thier internal tools by giving their developers a centralised development code. Since all the developers are working using a centralised code, the end result is consistent regardless of who’s working on the project and which web browser is being used. Customizable : If you are using only a few features of bootstrap, you can customize to download only those features using the following bootstrap customize page. http://getbootstrap.com/customize/ Support : As Bootstrap is the most popular framework, it has a very large community base and excellent documentation. Bootstrap's excellent documentation, examples and demos helps a developer learn bootstrap quickly even if you are new to it. If you ever run into an issue you will usually get help quickly and easily from the vast online community and web forums. In our next video we will discuss, downloading, setting up and understanding different bootstrap components. Please stay tuned. Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2016/05/what-is-bootstrap.html
Views: 490245 kudvenkat
Derived tables and common table expressions in sql server   Part 48
 
17:53
In this video we will learn about derived tables and common table expressions. CTE stands for common table expressions. We will also find the differences between, views, temporary tables, table variable, derived tables and cte's Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/derived-table-and-cte-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-48-derived-tables-cte.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 148068 kudvenkat
sql server concurrent transactions
 
07:34
Text version of the video http://csharp-video-tutorials.blogspot.com/2015/08/sql-server-concurrent-transactions.html Slides http://csharp-video-tutorials.blogspot.com/2015/08/sql-server-concurrent-transactions_14.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists In this video we will discuss 1. What a transaction is 2. The problems that might arise when tarnsactions are run concurrently 3. The different transaction isolation levels provided by SQL Server to address concurrency side effects First let us understand what is a transaction A transaction is a group of commands that change the data stored in a database. A transaction, is treated as a single unit of work. A transaction ensures that, either all of the commands succeed, or none of them. If one of the commands in the transaction fails, all of the commands fail, and any data that was modified in the database is rolled back. In this way, transactions maintain the integrity of data in a database. Example : The following transaction ensures that both the UPDATE statements succeed or both of them fail if there is a problem with one UPDATE statement. -- Transfer $100 from Mark to Mary Account BEGIN TRY BEGIN TRANSACTION UPDATE Accounts SET Balance = Balance - 100 WHERE Id = 1 UPDATE Accounts SET Balance = Balance + 100 WHERE Id = 2 COMMIT TRANSACTION PRINT 'Transaction Committed' END TRY BEGIN CATCH ROLLBACK TRANSACTION PRINT 'Transaction Rolled back' END CATCH Databases are powerful systems and are potentially used by many users or applications at the same time. Allowing concurrent transactions is essential for performance but may introduce concurrency issues when two or more transactions are working with the same data at the same time. Some of the common concurrency problems Dirty Reads Lost Updates Nonrepeatable Reads Phantom Reads We will discuss what these problems are in detail with examples in our upcomning videos One way to solve all these concurrency problems is by allowing only one user to execute, only one transaction at any point in time. Imagine what could happen if you have a large database with several users who want to execute several transactions. All the transactions get queued and they may have to wait a long time before they could get a chance to execute their transactions. So you are getting poor performance and the whole purpose of having a powerful database system is defeated if you serialize access this way. At this point you might be thinking, for best performance let us allow all transactions to execute concurrently. The problem with this approach is that it may cause all sorts of concurrency problems (i.e Dirty Reads, Lost Updates, Nonrepeatable Reads, Phantom Reads) if two or more transactions work with the same data at the same time. SQL Server provides different transaction isolation levels, to balance concurrency problems and performance depending on our application needs. Read Uncommitted Read Committed Repeatable Read Snapshot Serializable The isolation level that you choose for your transaction, defines the degree to which one transaction must be isolated from resource or data modifications made by other transactions. Depending on the isolation level you have chosen you get varying degrees of performance and concurrency problems. The table here has the list of isoltaion levels along with concurrency side effects. Isolation Level Dirty Reads Lost Update Nonrepeatable Reads Phantom Reads Read Uncommitted Yes Yes Yes Yes Read Committed No Yes Yes Yes Repeatable Read No No No Yes Snapshot No No No No Serializable No No No No If you choose the lowest isolation level (i.e Read Uncommitted), it increases the number of concurrent transactions that can be executed at the same time, but the down side is you have all sorts of concurrency issues. On the other hand if you choose the highest isolation level (i.e Serializable), you will have no concurrency side effects, but the downside is that, this will reduce the number of concurrent transactions that can be executed at the same time if those transactions work with same data. In our upcoming videos we will discuss the concurrency problems in detail with examples
Views: 64378 kudvenkat
Part 60 C# Tutorial Difference between String and StringBuilder
 
11:42
Tags string stringbuilder performance system.text.stringbuilder performance advantage of using system.text.stringbuilder over system.string stringbuilder namespace in c# stringbuilder append method c# stringbuilder append function convert stringbuilder object to string when to use stringbuilder over string stringbuilder vs string concatenation c# performance c# string concatenation best practice c# stringbuilder vs string concatenation string manipulation c# In this video we will understand the difference between System.String and System.Text.StringBuilder classes. We will also understand the difference between the terms mutable and immutable strings. C#, SQL Server, WCF, MVC and ASP .NET video tutorials for beginners https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd My Blog: www.csharp-video-tutorials.blogspot.com
Views: 105190 kudvenkat
Part 30 - C# Tutorial - Interfaces in c#.avi
 
20:34
In this part of the c sharp tutorial we will learn about interfaces Text version of the video http://csharp-video-tutorials.blogspot.com/2012/06/part-30-c-tutorial-interfaces-in-c.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-30-introduction-to-interfaces.html All C# Text Articles http://csharp-video-tutorials.blogspot.co.uk/p/free-c-video-tutorial-for-beginners.html All C# Slides http://csharp-video-tutorials.blogspot.com/p/c.html Complete C# tutorial https://www.youtube.com/playlist?list=PLAC325451207E3105 All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 418683 kudvenkat
Pivot in sql server 2008   Part 54
 
12:25
In this video we will learn about pivot operator. Pivot is a sql server operator that can be used to turn unique values from one column, into multiple columns in the output, there by effectively rotating a table. Text version of the video http://csharp-video-tutorials.blogspot.com/2012/10/pivot-operator-in-sql-server-part-54.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-54-pivot-in-sql-server-2008.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 170443 kudvenkat
Rank and Dense Rank in SQL Server
 
10:08
rank and dense_rank example difference between rank and dense_rank with example rank vs dense_rank in sql server 2008 sql server difference between rank and dense_rank In this video we will discuss Rank and Dense_Rank functions in SQL Server Rank and Dense_Rank functions Introduced in SQL Server 2005 Returns a rank starting at 1 based on the ordering of rows imposed by the ORDER BY clause ORDER BY clause is required PARTITION BY clause is optional When the data is partitioned, rank is reset to 1 when the partition changes Difference between Rank and Dense_Rank functions Rank function skips ranking(s) if there is a tie where as Dense_Rank will not. For example : If you have 2 rows at rank 1 and you have 5 rows in total. RANK() returns - 1, 1, 3, 4, 5 DENSE_RANK returns - 1, 1, 2, 3, 4 Syntax : RANK() OVER (ORDER BY Col1, Col2, ...) DENSE_RANK() OVER (ORDER BY Col1, Col2, ...) RANK() and DENSE_RANK() functions without PARTITION BY clause : In this example, data is not partitioned, so RANK() function provides a consecutive numbering except when there is a tie. Rank 2 is skipped as there are 2 rows at rank 1. The third row gets rank 3. DENSE_RANK() on the other hand will not skip ranks if there is a tie. The first 2 rows get rank 1. Third row gets rank 2. SELECT Name, Salary, Gender, RANK() OVER (ORDER BY Salary DESC) AS [Rank], DENSE_RANK() OVER (ORDER BY Salary DESC) AS DenseRank FROM Employees RANK() and DENSE_RANK() functions with PARTITION BY clause : Notice when the partition changes from Female to Male Rank is reset to 1 SELECT Name, Salary, Gender, RANK() OVER (PARTITION BY Gender ORDER BY Salary DESC) AS [Rank], DENSE_RANK() OVER (PARTITION BY Gender ORDER BY Salary DESC) AS DenseRank FROM Employees Use case for RANK and DENSE_RANK functions : Both these functions can be used to find Nth highest salary. However, which function to use depends on what you want to do when there is a tie. Let me explain with an example. If there are 2 employees with the FIRST highest salary, there are 2 different business cases 1. If your business case is, not to produce any result for the SECOND highest salary, then use RANK function 2. If your business case is to return the next Salary after the tied rows as the SECOND highest Salary, then use DENSE_RANK function Since we have 2 Employees with the FIRST highest salary. Rank() function will not return any rows for the SECOND highest Salary. WITH Result AS ( SELECT Salary, RANK() OVER (ORDER BY Salary DESC) AS Salary_Rank FROM Employees ) SELECT TOP 1 Salary FROM Result WHERE Salary_Rank = 2 Though we have 2 Employees with the FIRST highest salary. Dense_Rank() function returns, the next Salary after the tied rows as the SECOND highest Salary WITH Result AS ( SELECT Salary, DENSE_RANK() OVER (ORDER BY Salary DESC) AS Salary_Rank FROM Employees ) SELECT TOP 1 Salary FROM Result WHERE Salary_Rank = 2 You can also use RANK and DENSE_RANK functions to find the Nth highest Salary among Male or Female employee groups. The following query finds the 3rd highest salary amount paid among the Female employees group WITH Result AS ( SELECT Salary, Gender, DENSE_RANK() OVER (PARTITION BY Gender ORDER BY Salary DESC) AS Salary_Rank FROM Employees ) SELECT TOP 1 Salary FROM Result WHERE Salary_Rank = 3 AND Gender = 'Female' Text version of the video http://csharp-video-tutorials.blogspot.com/2015/10/rank-and-denserank-in-sql-server.html Slides http://csharp-video-tutorials.blogspot.com/2015/10/rank-and-denserank-in-sql-server_1.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 67973 kudvenkat
Self join in sql server - Part 14
 
11:19
In this video we will learn about 1. Self Join - Joining a table with itself 2. Self Join is not a different type of join. It can be classified as Inner Self Join, Outer Self Join (Left, Right and Full), or Cross Self Join. Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/self-join-in-sql-server-part-14.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-14-self-join.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 325127 kudvenkat
Part 15   Exception handling in WCF
 
09:39
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/12/part-15-exception-handling-in-wcf_5.html Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists When an exception occurs in a WCF service, the service serializes the exception into a SOAP fault, and then sends the SOAP fault to the client. By default unhandled exception details are not included in SOAP faults that are propagated to client applications for security reasons. Instead a generic SOAP fault is returned to the client. For debugging purpose, if you want to include exception details in SOAP faults, enable IncludeExceptionDetailInFaults setting. This can be done in 2 ways as shown below. 1. In the config file using service behavior configuration [behaviors] [serviceBehaviors] [behavior name="inculdeExceptionDetails"] [serviceDebug includeExceptionDetailInFaults="true"/] [/behavior] [/serviceBehaviors] [/behaviors] 2. In code using ServiceBehavior attribute [ServiceBehavior(IncludeExceptionDetailInFaults=true)] public class CalculatorService : ICalculatorService { public int Divide(int Numerator, int Denominator) { return Numerator / Denominator; } } Frequently asked WCF interview questions What happens when an exception occurs in a WCF service? OR What is a SOAP fault? OR How are WCF service exceptions reported to client applications?
Views: 71014 kudvenkat
Part 72   HandleError attribute in mvc
 
10:10
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/08/part-72-handleerror-attribute-in-mvc.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists In this video, we will discuss HandleError attribute in asp.net mvc. HandleErrorAttribute is used to display friendly error pages to end user when there is an unhandled exception. Let us understand this with an example. Step 1: Create a blank asp.net mvc 4 application. Step 2: Add a HomeController. Copy and paste the following code. public ActionResult Index() { throw new Exception("Something went wrong"); } Notice that, the Index() action method throws an exception. As this exception is not handled, when you run the application, you will get the default "yellow screen of death" which does not make sense to the end user. Now, let us understand replacing this yellow screen of death, with a friendly error page. Step 3: Enable custom errors in web.config file, that is present in the root directory of your mvc application. "customErrors" element must be nested under "[system.web]" [customErrors mode="On"] [/customErrors] Step 4: Add "Shared" folder under "Views" folder. Add Error.cshtml view inside this folder. Paste the following HTML in Error.cdhtml view. [h2]An unknown problem has occured, please contact Admin[/h2] Run the application, and notice that, you are redirected to the friendly "Error" view, instead of the generic "Yellow screen of death". We did not apply HandleError attribute anywhere. So how did all this work? HandleErrorAttribute is added to the GlobalFilters collection in global.asax. When a filter is added to the GlobalFilters collection, then it is applicable for all controllers and their action methods in the entire application. Right click on "RegisterGlobalFilters()" method in Global.asax, and select "Go To Definition" and you can find the code that adds "HandleErrorAttribute" to GlobalFilterCollection. public static void RegisterGlobalFilters(GlobalFilterCollection filters) { filters.Add(new HandleErrorAttribute()); } Is the friendly error page displayed for HTTP status code 404? No, but there is a way to display the friendly error page. In the HomeController, we do not have List() action method. So, if a user navigates to /Home/List, we get an error - The resource cannot be found. HTTP 404. To display a friendly error page in this case Step 1: Add "ErrorController" to controllers folder. Copy and paste the following code. public class ErrorController : Controller { public ActionResult NotFound() { return View(); } } Step 2: Right click on "Shared" folder and add "NotFound.cshtml" view. Copy and paste the following code. [h2]Please check the URL. The page you are looking for cannot be found[/h2] Step 3: Change "customErrors" element in web.config as shown below. [customErrors mode="On"] [error statusCode="404" redirect="~/Error/NotFound"/] [/customErrors] Make sure to replace [ with LESSTHAN and ] with GREATERTHAN symbol.
Views: 93858 kudvenkat
Views in sql server   Part 39
 
14:51
In this video we will learn about 1. What is a view 2. Creating example views 3. Advantages of using views Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/views-in-sql-server-part-39.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-39-views-in-sql-server.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 271278 kudvenkat
Union and union all in sql server   Part 17
 
12:41
In this video we will learn about the 1. Purpose of UNION and UNION ALL 2. Difference between UNION and UNION ALL 3. Difference between JOIN and UNION Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/union-and-union-all-in-sql-server-part.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-17-union-and-union-all.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 242742 kudvenkat
How to get the last generated identity column value in SQL Server - Part 8
 
12:50
In this video we will learn 1. Retrieve the last generated identity column value 2. Difference between SCOPE_IDENTITY(), @@Identity and IDENT_CURRENT('TableName') Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/how-to-get-last-generated-identity.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-8-retrieving-identity-column-values.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 304321 kudvenkat
Two way databinding in AngularJS
 
07:30
2 way data binding angularjs angularjs directive two way binding angularjs two way binding example ng-model directive example angularjs ng-model example In this video we will discuss, Two way databinding in AngularJS. Along the way we also discuss one of the very useful directive in angular ng-model. One of the most useful feature in AngularJS is the Two Way Data-Binding. The Two Way Data-Binding, keeps the model and the view in sync at all times, that is a change in the model updates the view and a change in the view updates the model. When the model changes the view is automatically updated. This is achieved using the data binding expression in the view. How about the other way round. How to keep the model up to date when the view changes. That's exactly is the purpose of ng-model directive. In the html below, notice the input element is decorated with ng-model directive. This ensures that whenever the value in the textbox is changed, angular will automatically update the message property of the $scope object. This means the ng-model directive automatically takes the form values and updates the model. The binding expression does the opposite, i.e whenever the model changes the view is automatically updated. Because of the two way data binding provided by angular, as you type in the textbox, the value is immediately displayed on the view just below the textbox. This two way binding feature provided by angular, eliminates the need to write any custom code to move data from the model to the view or from the view to the model. ng-model directive can be used with the following 3 html elements input select textarea Two way binding example with complex object is also discussed. Link for all dot net and sql server video tutorial playlists https://www.youtube.com/user/kudvenkat/playlists?sort=dd&view=1 Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/11/two-way-databinding-in-angularjs_3.html
Views: 370841 kudvenkat
Part 26   What is a windows service
 
05:56
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2014/02/part-26-what-is-windows-service_8.html Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists In this video, we will discuss 1. What is a windows service and how do they differe from regular applications and programs 2. How to view all the services installed on a windows machine 3. What is the use of windows services 4. When would an asp.net developer use a windows service What is a windows service and how do they differ from regular applications and programs A windows service is similar to any other program or application running on a windows machine. The following are the differences between a windows service and a regular application 1. Windows service runs in the background 2. They can be configured to start automatically when the system starts 3. They don't have user interface. How to view all the services installed on a windows machine 1. Open run windows by pressing Windows + R key 2. Type services.msc and press enter 3. The services window should display all the services installed on your computer What is the use of windows services Windows services provide core operating system features such as Event Logging - Windows Event Log Service Providing Security - Windows Firewall Service Error reporting - Windows Error Reporting Service When would an asp.net developer use a windows service In general, we should create a Windows Service to run code in the background all the time, without any sort of user interaction. An asp.net developer can use a windows service to host a wcf service. We can then configure the windows service to start automatically when the computer starts. This makes our WCF service always available for clients to consume, even if no-one is logged on, on that computer. In our next video, we will discuss, creating a windows service to host a WCF service
Views: 74351 kudvenkat
Transactions in sql server and ACID Tests   Part 58
 
09:50
In this video we will learn about Transaction ACID tests. A successful transaction must pass the "ACID" test, that is a transaction must be Atomic, Consistent, Isolated and Durable. Text version of the video http://csharp-video-tutorials.blogspot.com/2012/10/transaction-acid-tests-part-58.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-58-transaction-acid-test.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 105335 kudvenkat
Prototype in JavaScript
 
05:16
Link for all dot net and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists Link for slides, code samples and text version of the video http://csharp-video-tutorials.blogspot.com/2015/02/prototype-in-javascript.html In this video we will discuss Prototype object in JavaScript. Let us understand it's use with an example. The following Employee constructor function constructs Employee object. function Employee(name) { this.name = name; } There are several ways to add a function to the Employee object. One way is as shown below. This works but the problem with this approach is that, if you create 100 employee objects there will be 100 copies of getName() function. We don't want to be creating copies of functions, instead we want all the objects to share the same function code. This can be achieved using JavaScript prototype object. function Employee(name) { this.name = name; this.getName = function () { return this.name; } } var e1 = new Employee("Mark"); var e2 = new Employee("Sara"); document.write("e1.name = " + e1.getName() + "[br/]"); document.write("e2.name = " + e2.getName() + "[br/]"); Output : e1.name = Mark e2.name = Sara In this example, getName() function is added just to e1 object, and not to e2 object. So e2.getName() would throw an undefined error. function Employee(name) { this.name = name; } var e1 = new Employee("Mark"); e1.getName = function () { return this.name; } var e2 = new Employee("Sara"); document.write("e1.name = " + e1.getName() + "[br/]"); document.write("e2.name = " + e2.getName() + "[br/]"); In the following example getName() function is added to the Employee object using the name of the constructor function. This would also result in undefined error. function Employee(name) { this.name = name; } Employee.getName = function () { return this.name; } var e1 = new Employee("Mark"); var e2 = new Employee("Sara"); document.write("e1.name = " + e1.getName() + "[br/]"); document.write("e2.name = " + e2.getName() + "[br/]"); Using the prototype object to add functions : The following are the advantages of using the prototype object to add functions. 1. No matter how many objects you create, functions are loaded only once into memory 2. Allows you to override functions if required. function Employee(name) { this.name = name; } Employee.prototype.getName = function () { return this.name; } var e1 = new Employee("Mark"); var e2 = new Employee("Sara"); document.write("e1.name = " + e1.getName() + "[br/]"); document.write("e2.name = " + e2.getName() + "[br/]"); Output : e1.name = Mark e2.name = Sara
Views: 69808 kudvenkat
Transactions in sql server   Part 57
 
11:18
In this video we will learn about transaction processing in sql server. These concepts are applicable to sql server 2000, 2005 an 2008 Text version of the video http://csharp-video-tutorials.blogspot.com/2012/10/transactions-in-sql-server-part-57.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-57-transactions-in-sql-server.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 146233 kudvenkat
Indexed views in sql server   Part 41
 
13:40
In this video we will learn about, creating indexed views. A unique clustered index, is the first index that should be created on a view. Indexed views are also called as materialized views Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/indexed-views-in-sql-server-part-41.html Slides http://csharp-video-tutorials.blogspot.com/2013/09/part-41-indexed-views.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 144578 kudvenkat
Async and await in C# example
 
11:56
In this video we will discuss async and await keywords and their use with an example. Text version of the video http://csharp-video-tutorials.blogspot.com/2016/10/async-and-await-in-c-example.html Slides http://csharp-video-tutorials.blogspot.com/2016/10/async-and-await-in-c-example_31.html All C# Text Articles http://csharp-video-tutorials.blogspot.com/p/free-c-video-tutorial-for-beginners.html All C# Slides http://csharp-video-tutorials.blogspot.com/p/c.html All C# Videos https://www.youtube.com/playlist?list=PLAC325451207E3105 All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 157778 kudvenkat
Temporary tables in SQL Server   Part 34
 
15:17
In this video we will learn about 1. What are temporary tables 2. The 2 different types of temporary tables -- Local Temporary Tables and Global Temporary tables 3. Difference between local and global temp tables Text version of the video http://csharp-video-tutorials.blogspot.com/2012/09/temporary-tables-in-sql-server-part-34.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-34-temporary-tables.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 166388 kudvenkat
Part 38 - C# Tutorial - Delegates usage in c# continued.avi
 
11:34
In this part we will learn replacing hard coded logic using delegates Text version of the video http://csharp-video-tutorials.blogspot.com/2012/06/part-38-c-tutorial-delegates-example-ii.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-38-delegates-usage-in-c-ii.html All C# Text Articles http://csharp-video-tutorials.blogspot.co.uk/p/free-c-video-tutorial-for-beginners.html All C# Slides http://csharp-video-tutorials.blogspot.com/p/c.html Complete C# tutorial https://www.youtube.com/playlist?list=PLAC325451207E3105 All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 252382 kudvenkat
Part 87   What is Unobtrusive JavaScript
 
09:50
Link for code samples used in the demo http://csharp-video-tutorials.blogspot.com/2013/09/part-87-what-is-unobtrusive-javascript.html Link for csharp, asp.net, ado.net, dotnet basics, mvc and sql server video tutorial playlists http://www.youtube.com/user/kudvenkat/playlists What is Unobtrusive JavaScript? Unobtrusive JavaScript, is a JavaScript that is separated from the web site's html markup. There are several benefits of using Unobtrusive JavaScript. Separation of concerns i.e the HTML markup is now clean without any traces of javascript. Page load time is faster. It is also easy to update the code as all the Javascript logic is present in a separate file. We also get, better cache support, as all our JavaScript is now present in a separate file, it can be cached and accessed much faster.
Views: 55290 kudvenkat
Coalesce function in sql server   Part 16
 
04:28
In this video we will learn, how to use coalesce() function in sql server, with an example Text version of the video http://csharp-video-tutorials.blogspot.com/2012/08/coalesce-function-in-sql-server-part-16.html Slides http://csharp-video-tutorials.blogspot.com/2013/08/part-16-coalesce-function-in-sql-server.html All SQL Server Text Articles http://csharp-video-tutorials.blogspot.com/p/free-sql-server-video-tutorials-for.html All SQL Server Slides http://csharp-video-tutorials.blogspot.com/p/sql-server.html All Dot Net and SQL Server Tutorials in English https://www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd All Dot Net and SQL Server Tutorials in Arabic https://www.youtube.com/c/KudvenkatArabic/playlists
Views: 214988 kudvenkat