Skip to main content

Posts

Showing posts from October, 2012

ASP.NET 4.0 with Ajax

It's common for an web application to retrieve data from server and bind to control. Control being alone without data binding is nothing more than styled modeling statue. So interacting between DB and web control comes to challenge for developers whenever we design its working procedure. Ajax is possible only with a strong JavaScript engine that runs within the client browser and provides the foundation for more advanced and asynchronous features. The Javascript library currently incorporated in ASP.NET 3.5 Service Pack 1 is a necessary, but insufficient, attempt to deliver such a library. A more powerfule ASP.NET AJAX platform is required and it is just being introduced as part of ASP.NET AJAX 4.0 Requirements for Client-Side Data Binding There are two fundamental patterns for implementing data binding functionalities. One is the HTML Message pattern, and the other is the Browser-side Template pattern. The former entails making a remote service call to a component that re...

SQL Server 2008 Merger Statement

The most challenging issue of using SQL jobs to updating procedure is to check unique data with relative table. If you are using SQL Server 2005 or below you would have to write a series of T-SQL statements that check to see if the record exists, and then write an UPDATE or INSERT statement depending on your existence checks. SQL Server 2008 introduced the Merge statement which is commonly also called as Upsert (Update / Insert). It can be used as Insert if the row does not exists and update, if it exists. It can be used as ETL process while fetching data. This feature is useful for developers. It is not required to give any particular join (inner, left outer etc). Here are a few facts that you must know before starting to use Merge Statement: Atomic statement combining INSERT, UPDATE and DELETE operations based on conditional logic Done as a set-based operation; more efficient than multiple separate operations MERGE is defined by ANSI SQL; you will find it in other databa...