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

Showing posts with label SQL Server. Show all posts
Showing posts with label SQL Server. Show all posts

SQL Server - Show Time Difference in Minute Ago, Hour Ago, Day Ago, Week Ago, Month Ago

Sep 5, 2013 10 comments
Introduction

Here I will explain SQL Server query to get date time difference in minute ago, hour ago, day ago, week ago or month ago format in SQL Server 2008 / 2005 or how to get date time format in minute ago, hour ago, day ago, week ago or month ago in SQL Server 2008 / 2005.

Description

In previous articles I explained SQL Server Get only date or time from date time field,  SQL Server get list of procedures which contains table name, SQL Server can function return multiple values, SQL Server update multiple tables with inner joins, SQL Server difference between view and stored procedure and many articles relating to SQL Server. Now I will explain how to write query to get date time in minute ago, hour ago, day ago, week ago or month ago format in SQL Server.

SQL Server - Get Date or Time From Date Time Column / Field in SQL Server 2008 / 2005

Sep 4, 2013 3 comments
Introduction

Here I will explain SQL Server query to get only date or time from date time field in SQL Server2008 or 2005 or how to get only date or time from current date time field in SQL Server 2008 / 2005.

Description

In previous articles I explained sql server get list of procedures which contains table name, SQL Server difference between view and stored procedure, SQL Server difference b/w LEN and DATALENGTH functions and many articles relating to SQL Server. Now I will explain how to get only date or time from date time field in SQL Server.

SQL Server - Get Time Part Only From DateTime Column in 2008 / 2005

Sep 3, 2013 2 comments
Introduction:

Here I will explain how to get only time from datetime in SQL Server 2008 / 2005 or SQL Query to get only time part from datetime column or field in SQL Server 2008 or 2005.

Description:

In previous posts I explained get only date from datetime in SQL Server, Add row items as string with comma separated values, Exception handling in SQL Server with try catch, Add identity property to existing column in sql server, update multiple tables using inner join in SQL Server many articles relating to SQL Server, asp.net, IIS, etc. Now I will explain how to get only time from datetime in SQL Server.  

SQL Server Get List of Stored Procedures Where a Table Name is Used

4 comments

Introduction:

Here I will explain SQL Server query to get a list of stored procedures where table is used or SQL query to get list of procedures which contains table name in SQL Server.

Description:

In previous posts I explained can function return multiple values in SQL Server, Difference between view & stored procedure in SQL, update multiple tables using inner join in SQL Server many articles relating to SQL Server, asp.net, IIS, etc. Now I will explain how to get list procedures which contains particular table in SQL Server.  

SQL Server - Invalid Use of a Side-Effecting Operator 'insert' within a Function

1 comments
Introduction:

Here I will explain how to solve the problem of “invalid use of a side-effecting operator 'insert' within a function in SQL Server”.

Description:

In previous posts I explained many articles relating to solve errors in asp.net, SQL Server, IIS, etc. Now I will explain how to solve the problem of “invalid use of a side-effecting operator 'insert' within a function in SQL Server”.

SQL Server - Can Function Return Multiple Values in SQL Server 2008

Sep 1, 2013 12 comments
Introduction:

Here I will explain how SQL Server function will return multiple values in SQL Server 2008 or return multiple values from SQL user defined function in SQL Server 2008.    

Description:

SQL Server- Difference between View and Stored Procedure

Aug 30, 2013 13 comments
Introduction:

Here I will explain difference between SQL SERVER view and stored procedure in SQL Server 2008.  
Description:

SQL Server Split Function Example in 2008 to Split Comma Separated String into Table

Jul 28, 2013 13 comments
Introduction

Here I will explain simple split function in SQL Server to split comma separated string into table values in SQL Server database or How to split comma separated string with custom split() function in SQL Server

Description:

SQL Server Update Multiple Tables using Inner Joins

Jul 21, 2013 4 comments
Introduction:

Here I will explain SQL query to update multiple tables in SQL Server using inner joins or update multiple tables in SQL Server with joins.
Description:
In previous posts I explained difference between LEN and DATALENGTH functions in SQL Server, Convert rows to columns without pivot tables in sql server, SQL query to get data between dates and many articles relating to SQL Server. Now I will explain how to write update query with multiple tables in SQL Server.

SQL Server - Conversion Failed when Converting the Varchar Value '24,' to Data Type int

Jul 17, 2013 7 comments
Introduction:

Here I will explain how to solve the problem of “COALESCE function: Conversion failed when converting the varchar value '24,' to data type int in SQL Server”.

Description:

In previous posts I explained many articles relating to solve errors in asp.net, SQL Server, IIS, etc. Now I will explain how to solve the problem of “COALESCE function: Conversion failed when converting the varchar value '24,' to data type int in SQL Server”.

SQL Server - Add Row items as String with Comma Separated Values

Jul 16, 2013 11 comments
Introduction:

In this article I will explain how to add row values as string with comma separated in
SQL server.
Description:
In previous articles I explained Exception handling in SQL Server, SQL Query to read xml data file, SQL Query to get latest unique records by date, difference between function and stored procedures, joins in SQL Server, substring function in SQL server and many articles relating to SQL server. Now I will explain how to add row values as string with comma separated in SQL Server.

C# - Adding the Specified Count to the Semaphore would Cause it to Exceed its Maximum Count in SQL Server / Asp.net

Jul 9, 2013 8 comments
Introduction:

Here I will explain how to solve the problem “adding the specified count to the semaphore would cause it to exceed its maximum count in c# / Asp.net / sql server .” When running asp.net web application in c#, vb.net with SQL Server database.

Description:


In previous posts I explained many articles relating to solve errors in asp.net, SQL Server, IIS, etc. Now I will explain how to solve the problem of “adding the specified count to the semaphore would cause it to exceed its maximum count in sql server”. To solve this problem we need to add “Pooling=False” in database connection string to disable connection pool in web.config.

SQL Server - Get List of All Stored Procedures from Database in SQL Server

Jun 13, 2013 5 comments
Introduction

Here I will explain simple SQL Query to get list of all stored procedures from SQL Server database or How to get list of all stored procedures in SQL Server Database or How to Get list of all tables in SQL Server database. 

Description:

SQL Server - Get List of All Table Names in Database

Jun 12, 2013 3 comments
Introduction

Here I will explain simple SQL Query to get all table, procedure names in database or How to get list of all tables names in SQL Server Database or How to Get list of all procedures in SQL Server database.  

Description:

In previous articles I explained Create database schema diagrams in SQL Server, Delete Duplicate records from SQL Server, Exception handling in SQL Server stored procedure, Reading xml file using SQL Server and many articles relating to SQL Server. Now I will explain how to get all tables and stored procedures in database using SQL Server.

Create Database Schema Diagram in SQL Server

Apr 17, 2013 1 comments
Introduction

Here I will explain how to create database schema diagram in SQL Server 2008.

Description:
  
In previous articles I explained
Insert values in identity column in SQL Server, Check if string contains specific word in SQL, SQL Query to read xml file, SQL Query to get duplicate records count, SQL Query to convert lower case to upper case and many articles relating to SQL Server, jQuery, JavaScript. Now I will explain how to create database schema diagram in SQL Server 2008.

To create database schema diagram in SQL Server 2008 you need to follow below steps

SQL Server - How to Find Total Number of Days in a Month

Apr 9, 2013 12 comments
Introduction

Here I will explain how to get or find total number of days in month using SQL Server.

Description:
  
In previous articles I explained Insert values in identity column in SQL Server, Check if string contains specific word in SQL, SQL Query to read xml file,
SQL Query to get duplicate records count, SQL Query to get month wise, year wise data and many articles relating to SQL Server, jQuery, JavaScript. Now I will explain how to get or find total number of days in month using SQL Server.

To get total number of days in a month we need to write the query like as shown below

SQL Server - How to Delete Duplicate Records Rows from Table in SQL Server

Apr 8, 2013 1 comments
Introduction

Here I will explain how to remove or delete duplicate records or rows from a table in SQL Server or Delete duplicate records / rows from table in SQL Server 2008.

Description:
  
In previous articles I explained SQL Query to get duplicate records count, SQL Query to convert rows to columns, SQL Query to get last inserted record id and many articles relating to
SQL Server, jQuery, JavaScript. Now I will explain how to remove duplicate records from a table in SQL Server.

To delete duplicate records or rows from datatable in SQL Server you need to check below article in that article I explained clearly how to delete duplicate records from SQL Server

Exception Handling in SQL Server Stored Procedure with TRY CATCH

Mar 8, 2013 20 comments
Introduction

Here I will explain how to handle exceptions in SQL Server or exception handling in SQL Server for stored procedure by using try catch or error handling in SQL Server.

Description:
  
In previous articles I explained Pass table as parameter to stored procedure in SQL Server, Difference between joins in SQL Server, Convert rows to columns in SQL Server, SQL Query to get duplicate records count and many articles relating to
SQL Server, jQuery, JavaScript. Now I will explain how to handle exceptions in SQL Server.

To handle exceptions in SQL Server we can use TRY…… CATCH blocks. To use TRY…… CATCH blocks in stored procedure we need to write the query like as shown below

SQL Server - Add Identity Property to Existing Column in Table

Mar 7, 2013 1 comments
Introduction

Here I will explain how to add identity property to existing column in table using SQL Server 2008 or add identity column to existing table SQL Server.

Description:
  
In previous articles I explained Create Identity Column or Auto increment column in SQL Server, Reset identity column in SQL Server, insert values in identity column in SQL Server,
SQL Query to get month wise, year wise data and many articles relating to SQL Server, jQuery, JavaScript. Now I will explain how to add identity property to existing column in table using SQL Server 2008.

SQL Server - How to Insert Values into Identity Column

2 comments
Introduction

Here I will explain how to insert values in identity column in SQL Server. Identity columns are used to automatically assign new incremented value to identity column when new record inserted based on previous value in SQL Server.

© 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.