Tag Archives: CodeProject

Case Statement/ Expression in SQL Server

Case Statement/ Expression in SQL server  Sometimes we need to get one result output from multiple possible outcomes based on the evaluation of some expression. This expression can be a simple case expression which compares an expression with a set … Continue reading

Posted in Most Imp SQL Concepts, SQL Basic Concepts, SQL Server | Tagged , | 1 Comment

Isolation levels in SQL Server

Isolation levels :- Isolation level is required to isolate a resource and protect it from other transactions. This is achieved with the help of locks but what locks are needed and how they can be established is decided on the … Continue reading

Posted in SQL Isolation Level, SQL Server | Tagged , , | 33 Comments

SQL Server Functions- An Introduction

SQL FUNCTION: – Function in a database can be defined as the code segment consisting of a logical group of SQL statements which takes some input arguments (if required), run in a sequential order and returns the output either in … Continue reading

Posted in Most Imp SQL Concepts, SQL Functions, SQL Server | Tagged , , | 31 Comments

Cursor in SQL server

Sometimes our application required a database object which allows manipulation of data from a set of rows on row by row basic which means single row at a time. Cursor is the database object which solves this problem. With the use of … Continue reading

Posted in Most Imp SQL Concepts, SQL Cursor, SQL Server | Tagged , , | 33 Comments

How to find duplicate values in a table

Sometimes duplicate values in tables can create a major problem when we do not make a primary key or a unique key on a table. In these cases we need to find out the duplicate records and need to delete … Continue reading

Posted in Interview Questions, SQL Basic Concepts, SQL Server | Tagged , | 33 Comments

Sql Server View

Views:- View can be described as virtual table which derived its data from one or more than one table columns.It is stored in the database. It is used to implements the security mechanism in the Sql Server. For example, suppose … Continue reading

Posted in Most Imp SQL Concepts, SQL Server, SQL View | Tagged , , | 31 Comments

Sql Server – How to write a Stored procedure in Sql server

Stored Procedure:- Stored Procedure In Sql server can be defined as the set of logically group of sql statement which are grouped to perform a specific task. There are many benefits of  using a stored procedure. The main benefit of  … Continue reading

Posted in Most Imp SQL Concepts, SQL Server, SQL Stored Procedure | Tagged , , | 42 Comments

IDENTITY Property in SQL Server

  IDENTITY  Property Sometimes we need a column whose values can uniquely identifying the rows in the table. To achieve this purpose, this column should contains the unique values and it can’t contains the NULL or empty values. We can … Continue reading

Posted in SQL Basic Concepts, SQL Server | Tagged , | 33 Comments

How to make database offline or online

Database is made offline to move its physical files. There can be many ways to make a database offline. But there are three main methods which are used frequently to make the database offline. These methods are given below:- CodeProject … Continue reading

Posted in SQL Basic Concepts, SQL Server | Tagged , | 2 Comments

Different ways to create a table and insert data into the table

Introduction Tables can be defined as the structure which contains the data in the database. This article discuss about the different ways to create a table and insert data into the table. Some of the ways to create a table … Continue reading

Posted in SQL Basic Concepts, SQL Server | Tagged , , | 1 Comment