Aspdotnet-Suresh

aspdotnet-suresh offers C#.net articles and tutorials,csharp dot net,asp.net articles and tutorials,VB.NET Articles,Gridview articles,code examples of asp.net 2.0 /3.5,AJAX,SQL Server Articles,examples of .net technologies

Query to return default value if column contains null value in SQL Server

Jul 10, 2012 4 comments
Introduction:

Here I will explain how to write a query to return default value if column contains null value in SQL Server.

Description:

In previous articles I explained how to delete null or empty values from datatable in SQL Server and many articles relating to SQL Server. Now I will explain how to write a query to return default if column contains null value in SQL Server. For that first design one table (UserInfo) in database and enter data like as shown below

Get output parameter from stored procedure in asp.net

Jul 9, 2012 3 comments
Introduction

In this article I will explain how to get output parameters returns by stored procedure in asp.net.

Description:

In previous posts I explained many articles relating asp.net,
gridview, JQuery, SQL Server etc. Now I will explain how to get output parameters return by stored procedure in asp.net. First we will see how to write a stored procedure to return output parameters for that check this post write stored procedure to return output parameters in SQL Server. Once stored procedure designed in database write the following code in code behind to get output parameters returns by stored procedure in asp.net.

Query to delete null or empty values from datatable in sql server

4 comments
Introduction:

Here I will explain how to write a query to delete null or empty values from datatable in SQL Server.

Description:

In previous articles I explained many articles relating to SQL Server. Now I will explain how to write a query to delete null or empty values from datatable in SQL Server. For that first design one table (UserInfo) in database and enter data like as shown below

Query to convert lowercase to uppercase characters in SQL Server

Jul 8, 2012 6 comments
Introduction:

In this article I will explain how to write a query to convert or change lowercase to uppercase or uppercase to lowercase characters in SQL server.

Description:

In previous post I explained how to alter or modify or delete or change already existing column in datatable in SQL Server and many articles relating to SQL Server. Now I will explain how to convert or change lowercase to uppercase or lowercase to uppercase characters in SQL Server. Here I will explain with one example for that I have one table UserDetails like as shown below

Query to change the datatype of column in sql server

3 comments
Introduction:

In this article I will explain how to change or rename datatype of column in SQL server.

Description:

In previous post I explained how to alter or modify or delete or change already existing column in datatable in SQL Server and many articles relating to SQL Server. Now I will explain how to rename or change datatype of column name or table name in SQL Server.

Syntax to modify existing column datatype in table

If we want to modify existing column datatype from data table that syntax will be like this

Add datatable data with comma separated values in string

Jul 6, 2012 2 comments
Introduction:

Here I will explain how to add or bind datatable column data with comma separated values in asp.net.

Description:

In previous article I explained about self join in SQL server, Joins in SQL Server and many more articles relating to SQL Server. Now I will explain how to add datatable data with comma separated values in asp.net.

self join query in sql server | self join example in sql server

Jul 5, 2012 8 comments
Introduction:

Here I will explain how to write self join query in SQL server and self join example in SQL server.

Description:

In previous article I explained about Joins in SQL Server and many more articles relating to SQL Server. Now I will explain about self join in SQL Server.

Self Join

Joining the table itself called self join. Self join is used to retrieve the records having some relation or similarity with other records in the same table. Here we need to use aliases for the same table to set a self join between single table and retrieve records satisfying the condition in where clause.

Alter query to add column with default value in SQL Server

Jul 4, 2012 0 comments
Introduction:

In this article I will explain how to write Query to add new column with default value to existing datatable in SQL server.

Description:

In previous post I explained how to alter or add new column in datatable using SQL Server. Now I will explain how to write query to add new column with default value to existing datatable in SQL Server. During work with one application I got requirement like alter existing table structure to add new column with default value 0(zero). If we want to add new column with some default value to existing table we need to write the query in a format as shown below

Use Case Statement with Select Query in SQL Server | Case Statement Example in SQL Server

5 comments
Introduction:

In this article I will explain how to write SQL  query to use case statement with select in SQL Server or case statement example in SQL Server.

Description:

In previous posts I explained Distinct keyword with top statement, Replace function, substring function to get particular part of string and many articles relating to SQL Server. Now I will explain how to write query to use case statement in SQL Server.

Generally case statement is conditional statement that will return column value based on the evaluation of set conditions. We can use CASE in statements such as SELECT, UPDATE, DELETE and SET, and in clauses such as select_list, IN, WHERE, ORDER BY, and HAVING.

Jquery autocomplete textbox with multiple words separated by comma or semicolon in asp.net

Jul 3, 2012 53 comments
Introduction:

In this article I will explain how to implement JQuery UI autocomplete textbox with multiple words or values with comma separated or semi colon separated in asp.net.
Description:

In previous articles I explained JQuery autocomplete textbox with asp.net and
JQuery autocomplete textbox with images in asp.net and many articles relating to JQuery. Now I will explain how to implement autocomplete textbox with multiple word selection in asp.net.
© 2015 Aspdotnet-Suresh.com. All Rights Reserved.
The content is copyrighted to Suresh Dasari and may not be reproduced on other websites without permission from the owner.