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

Sunday 20 October 2013

Tuesday 15 October 2013

SQL SERVER: How to find nth maximum value and nth minimum values in a column


Hi friends, in this article I will explain about  SQL SERVER: How to find nth maximum value and nth minimum values in a column.
I already explained in the previous articles about  How to Get Highest and Lowest Values in a Row using SQL SERVERHow to Display DateTime Formats in Different Languages using SQL Server and How to Calculate Age from Date Of Birth using SQL Server

How to Get Highest and Lowest Values in a Row using SQL SERVER

Hi friends, in this article I will explain about How to Get Highest and Lowest Values in a Row using SQL SERVER.

How to Display DateTime Formats in Different Languages using SQL Server

Hi friends, in this article I will explain about How to Display DateTime Formats in Different Languages using SQL Server.
I already explained in the previous articles about How to Calculate Age from Date Of Birth using SQL ServerHow to encrypt/decrypt string in sql server and How to get second-highest salary employees in a table,Find 2nd highest salary in SQL server, SQL Query for second maximum salary from employee table

You can get the list of languages support in SQL SERVER by using below Query
select * from sys.syslanguages

How to Calculate Age from Date Of Birth using SQL Server

Thursday 29 August 2013

How to get second-highest salary employees in a table,Find 2nd highest salary in SQL server, SQL Query for second maximum salary from employee table

                                         Hi friends, in this article I will explain about Find 2nd highest salary in SQL server, How to get second-highest salary employees in a table, SQL Query for second maximum salary from employee table.
I will explain the SQL Query for second maximum salary from employee table.
Create one table as Employee table

Wednesday 28 August 2013

How to delete a null record in SQL Server or in SQL server how to delete rows where multiple columns have either null or Query to delete null or empty values from data table in SQL Server

Hi Friends, in this article I will explain about how to delete a null record in SQL Server or in SQL Server  how to delete rows where multiple columns have either null or Query to delete null or empty values from data table in SQL Server.
In previous article I explained some articles related SQL Server . Now I will explain about How to delete a null record in SQL Server. For that first create one table name it as USERS.

Monday 10 September 2012

Differences between Stored Procedures and Functions | Stored Procedures vs Functions (Difference between SP & UDF)

                                Hi Friends, in this article I will explain about what is the differences between stored procedures and functions in SQL Server. In many interviews this question is compulsory.
                             I already explained in the previous article Difference between TRUNCATE, DELETE and DROP commands in SQL SERVER.

Difference between stored procedures and functions:
  • Stored Procedure can return zero or n values whereas function can return 1 value.Function must return a value which is mandatory but in stored procedure it is optional. Procedure can   return multiple values (max 1024).

Friday 7 September 2012

Difference between TRUNCATE, DELETE and DROP commands in SQL SERVER

                                     Hi Friends, in this article I will explain about the Difference between TRUNCATE, DELETE and DROP commands in SQL SERVER.For many interviews this question is frequently asked.
First of all we know those individually after that we will know differences.

Truncate:
TRUNCATE Command  removes all the data or all rows from a table.
·         We cannot use where clause with Truncate command.
·         The operation cannot be rolled back and no triggers will be fired because it does not log individual rows.
·          As such, TRUCATE is faster and doesn't use as much undo space as a DELETE.
·         It frees the space containing the table.
·         Identity columns are re-seeded on this operation, if no seed was defined then the default value 1 is used.
·         This is a DDL command as its resets identity columns, deallocates data pages and empties them for use of other objects in the database.

Friday 6 July 2012

Windows Authentication to Access SQL Server Through a ASP.NET Web Application || Configuring SQL Server || Configuring IIS: || Configuring the ASP.NET Web Application || Creating Connection Strings

We need to configure the following four different areas to access Windows integrated security:
1.     SQL Server
2.     IIS Web Server
3.     ASP.Net web application
4.     ConnectionString

Wednesday 4 July 2012

Interview Questions on SQL SERVER Part I | Interview Questions and Answers on SQL SERVER Part I

                  Hi Friends, in this article I will share some interview Questions on SQL SERVER.
I already explained some interview Questions on SQL SERVER in Interview Questions and Answers on SQL SERVER Part II
1.What is Sql server?
                SQL - Structured query language is the standard command set used to communicate with the relational database management system.
© 2012-2018 Aspdotnet-Kishore.blogspot.com. All Rights Reserved.
The content is copyrighted to Kishore and may not be reproduced on other websites without permission from the owner.