Cloud & SQLSailor

Cloud, Databases & Beyond!

Category: General

  • DBCC INPUTBUFFER

    Displays the last statement sent from a client to an instance of Microsoft SQL Server. Arguments  : session_id or request_id Request ID can be retrieved from the below statement :…


  • Using NOLOCK Hint

    When you specify the NOLOCK hint, the query both doesn’t issue shared locks and also doesn’t care about already existing exclusive locks. Thus, you will get the result back very…


  • How to move a TEMP DB

    USE masterGOALTER DATABASE TempDB MODIFY FILE(NAME = tempdev, FILENAME = ‘f:datatempdb.mdf’)GOALTER DATABASE TempDB MODIFY FILE(NAME = templog, FILENAME = ‘e:datatemplog.ldf’)GONo changes are made to TempDB till SQL Server restarts. Please…


  • Information_Schema – A real friend

    We can query Information_Schema for many purpose :   Select * from Information_Schema.Columns where Column_Name like ‘%%’   Select * from Information_Schema.Tables where Table_Name like ‘%%’


  • Sample back up strategy – Best explanation from MSDN

    Sample Backup Strategy The following illustration shows the easiest backup strategy under the full recovery model. In the illustration, a full database backup, Db_1, and two routine log backup, Log_1…


  • Different RAID levels used for data file configurations

    1. RAID 0 – This is called as disk striping as data is written across the disks.Read write operations are fast but there is no fault tolerance. 2. RAID 1…


  • You need to get the exact instance name,what is the way to get it via TSQL

    select @@Servername Use this command to get the exact name of the instance.


  • How to enable trace flag 1400

    · Go to RUN –> Type sqlservermanager.msc · Right click on SQL Server(instance name) service and click on properties · Click on Advanced tab · In the start up parameters…


  • Can we create Snapshot’s using SSMS ?

    Answer is a straight No,however there are some 3rd party add-ins which you can try and by no way we can say its bug free T-SQL can be used easily…


  • Have you heard about term ‘RTM’ while dealing with various versions of SQL 2005 or 2008,Here is an explanation :

    Release to Manufacturing (RTM) is a milestone where the product will be available for users to download.