Oh! I forgot When I took last Database Backup ? How to determine this? TIP # 66
In last few tips TIP #64& TIP #65 we get information how to take backup & How to ensure it can be restore? Now lets me share some more information related to backup.Problem:- Sometimes ,...
View ArticleHow to take differential backup ? TIP #67
Friends,We were discussing backup from last few post. Now lets take a look one more feature of backup which is differential backup.Differential backup is backup after last full backup. Before taking...
View ArticleHow to take Transaction Log backup ? TIP# 68
As we discussed in earlier tips how to take full backup and differential backup now in this tip we will see how to take transaction backup .Before taking transaction backup the first and mandatory...
View ArticleHow easy it is to check which statements consuming most of the CPU & RAM–TIP #68
Problem:- One of the most important question comes in our mind what is the cause of slow SQL SERVER. We always struggle with following questions Which is highly CPU consuming query ?Which is highly...
View ArticleHow to copy table structure only from a SQL Query ? Tip #69
Recently , one of my friends shared that some interviewer asked him a question “How to copy table structure only from a SQL Query?”So, Below is simplest query to copy structure only of a table into...
View ArticleHow to find all running SQL Server Instance on a machine ? TIP #70
Hello friends,Many times it happened with me I forgot the instance name of SQL Server.So here is a small trick which will help you in determining the entire running SQL Server instance on your...
View ArticleHow to pause execution for particular time or interval ? TIP #71
Suppose, We are working on a stored procedure in which some complex operation is going. We are fetching some value from a table and running some custom operations and after ending of this complex...
View ArticleHow explicitly insert default value ? TIP #72
Suppose, sometimes you just need entry in the table with all the default values. For example you have a Student table which looks like as belowCREATE TABLE #tmpStudent (StudentId INT IDENTITY(1,1),...
View ArticleHow to replace a specific string from a large string with Write feature ? TIP...
This is very interesting feature and I recently come to know this awesome feature.Lets understand this by an example below Suppose we have a student table with following structure as shown in below...
View ArticleHow to determine Meta data or result set information of a stored procedure...
Sometimes it may require that you don’t know what will be output of a stored procedure ? what kind of result set it return ? In such case SQL SERVER provided a new DMV statement which is...
View ArticleHow to disable constraints of a table ? TIP #74
You are reading this post just because of two reason 1) You are curious whether it is possible or not and why we require ?2) You need to disable constraints So , let me share here that you can...
View ArticleHow to determine free space on each fixed drive of server machine using SQL...
When you do SQL Server maintenance one of important aspect is available space on server drive because your SQL SERVER data is dependent on space .Now what you need to do to get free space from each...
View ArticleSequence feature TIP #76
Although it is a old feature for those who knows ORACLE but for SQL server developers it is a new feature.Let understand it by an example. Suppose we want an auto incremented column a part from primary...
View ArticleEasy way to reseed identity column ? TIP #77
Sometimes, we may require to reseed identity column of a table due to various reason.For example we have deleted a record from a Student which have an identity column StudentId. Below is schemaNow it...
View ArticleChange Tracking–an easy way to track your changes TIP#78
I am pretty much sure by the title of this post you had idea of the post content. Although I am late to post this feature but anyways Change Tracking (CT) is a feature came in SQL SERVER 2008. As the...
View ArticleChange Data Capture (CDC)–An easy way to track data changes of a database–TIP...
In last TIP #78 we have discussed Change tracker (CT) which was introduced in SQL SERVER 2008. CT feature only tracks which row is changes means on which row Insert/update/delete operation is...
View ArticleHow to insert value in Identity column ? TIP #80
Happy new year 2015 .Suppose you have a source table and one destination table (Which is exact replica of source table) and you want to copy all the rows of source table into destination table. Now...
View ArticleContained Database–A new feature in SQL SERVER 2012 TIP #81
While working on a project sometimes it happened that we need to shift the database from one server to another due to various reason (sometimes it is only money ).We are aware that this easy step take...
View ArticleHow to Enable / Disable Xp_cmdShell in SQL SERVER? TIP #82
Friends,Sometimes it might be possible that you have to run dos command from SQL SERVER. In such situation you have to enable the xp_cmdShell option of sql configuration.To enable this we can write...
View ArticleHow to configure memory in SQL SERVER ? TIP#83
One of the good sentence I remember “When someone has teeth he/she is not having nuts and when someone has nuts he/she not having teeth”. Just joke a part. You understand what I mean to say here. If...
View Article