Vivek's SQL Notes
Replication in SQL Server
8 comments, 358 reads
Posted in Vivek's SQL Notes on 31 December 2012
Log Shipping in SQL Server
0 comments, 309 reads
Posted in Vivek's SQL Notes on 31 December 2012
Rebuild And Reorganization of Indexes
0 comments, 306 reads
Posted in Vivek's SQL Notes on 31 December 2012
Fragmentation in SQL Server
1. Internal Fragmentation
2. External Fragmentation
Internal Fragmentation:- In this fragmentation, there exists a space between the different records within a page. This is caused due to the…
3 comments, 273 reads
Posted in Vivek's SQL Notes on 31 December 2012
Welcome 2013
0 comments, 304 reads
Posted in Vivek's SQL Notes on 31 December 2012
Happy Diwali
Wish you all a very happy and blessed festive season. May this festival of lights brings more brightness in your lives in every way. Happy Diwali :)
Play safe...!
0 comments, 171 reads
Posted in Vivek's SQL Notes on 13 November 2012
Boyce - Codd Normal Form (BCNF)
For example , suppose there are 5 columns says A,B,C,D,E…
4 comments, 379 reads
Posted in Vivek's SQL Notes on 19 August 2012
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 isolation level set on the database level. If low level…
13 comments, 1,035 reads
Posted in Vivek's SQL Notes on 19 August 2012
Merge Command In Sql Server
Merge Command:- Merge command is a new feature introduced in the SQL Server 2008. It can perform Update, Insert and delete operations at a single statement which means all the data is processed and read only once instead of three times(In case of Insertion, deletion and update statements.) It has…
2 comments, 543 reads
Posted in Vivek's SQL Notes on 17 April 2012
Adding , Deleting and Updating a Column in a table
1. How to add a column
2. How to update a column
3. How to drop a column
Suppose…
2 comments, 505 reads
Posted in Vivek's SQL Notes on 15 April 2012
Derived Table In Sql Server
0 comments, 946 reads
Posted in Vivek's SQL Notes on 15 April 2012
Pivot and Unpivot table in SQL SERVER
Pivot Table:- Pivot tables are used to summarize and display the data, specially in case of report data by means of aggregating the values. Pivot table can be used if we want to display the unique values of the column of a table as the columns of another table. It turns the…
6 comments, 10,554 reads
Posted in Vivek's SQL Notes on 14 April 2012
SQL Server- Output clause
2 comments, 717 reads
Posted in Vivek's SQL Notes on 22 January 2012
CTE command In Sql Server
Common table expression (CTE):- Common table expression or CTE can be described as the temporary, named record set return by the execution of the query (insert, delete, update, select or update view statement). It is not stored as an object in the database and it last only till the execution…
7 comments, 1,500 reads
Posted in Vivek's SQL Notes on 17 January 2012
SQL Server-Table Variable
4 comments, 1,287 reads
Posted in Vivek's SQL Notes on 7 January 2012
SQL Server - Local temporary table
Local temporary table:- Local temporary table is created in the tempdb and it is visible to the current user's session only. It remains exists till the current user session is connected. Once the user connection is disconnected it gets destroyed. Since the local temporary table is created in the tempdb,…
0 comments, 1,091 reads
Posted in Vivek's SQL Notes on 7 January 2012
SQL Server - Global temporary tables
Global temporary table:- Global temporary table is created in the tempdb and it is visible to all other sessions as well. Global temporary tables are only destroyed when the current user disconnected and all the sessions referring to it closed. It means no user sessions refers it. Since the global temporary table is…
6 comments, 3,681 reads
Posted in Vivek's SQL Notes on 7 January 2012
How to remane a Table in Sql Server
SP_RENAME 'old table name', 'New table name'
For example, if we want to rename the table from employee to employeemaster, following command can be used.
SP_RENAME 'employee', 'employeemaster'
This command will rename the table from employee to employeemaster.
0 comments, 424 reads
Posted in Vivek's SQL Notes on 2 January 2012
How to change the database collation
0 comments, 599 reads
Posted in Vivek's SQL Notes on 2 January 2012
SQL Triggers - An Introduction
2 comments, 1,963 reads
Posted in Vivek's SQL Notes on 16 November 2011



Subscribe to this blog