Home » Tutorials » Archive by categorySQL SERVER (Page 2)

Select Primary Key value from Table dynamically-Sql Server

Select-Primary-Key-value-Table-dynamically-Sql-Server-technothirsty
Select Primary Key value from Table dynamically Hello friends, Today I am going to teach select primary key value from any table dynamically. At the time development we need primary key many times so no need to create another stored procedure.Below store procedure help to find out primary...
Continue reading

Should we Shrink database – Sql Server

Should we Shrink database – Sql Server Lets try to understand with an example. First we will create database and add some tables in that database with some sample data and then we will major fragmentation level as well size of database & log. After that we will...
Continue reading

Find Blocking queries in Sql Server

Find-blocking-queries-Sql-Server-technothirsty
Find Blocking queries in Sql Server Hello folks, today I will explain regarding most common problem of blocking in Sql Server. There are so many developers having same question “How can we find blocking queries in Sql Server”. Let’s try to take an example and understand how to...
Continue reading

Remove blank lines in Sql Server Script

Remove Unnessasary Blank lines
Remove blank lines in Sql Server Script Problem: Let’s say we have a script in which there are blank lines in between two lines and you want to remove these blank lines from that script. Have look into below image, As image we want to remove blank lines...
Continue reading

What is cursor in SQL Server?

Cursor-SQL-Server-technothirsty
What is cursor in SQL Server? A cursor is a set of rows together with a pointer that identifies a current row. In other word, Cursor is a database object used by applications to manipulate data in a set on a row-by-row basis, its like record set in...
Continue reading

What is OPENXML in SQL Server?

OPENXML-SQL-Server-technothirsty
What is OPENXML in SQL Server? OPENXML can parse the xml data in SQL server very efficiently in SQL Server. OpenXML primarily gives the ability to insert XML data to the relational database, however we can query the data too using OpenXML. We need to specify the path...
Continue reading

Rebuild and Reorganize Indexing Sql Server Scripts

Rebuild-Reorganize-Indexes-1
Rebuild and Reorganize Indexing Sql Server Scripts Hello Folks, today I will explain regarding when and why we should Rebuild or Reorganize Index in Sql Server regularly. There is a simple rule behind Rebuild and Reorganize indexes which is shown in MSDN as below:   See as per MSDN when avg_fragmentation_in_percent’s...
Continue reading




DISCLAIMER:
The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.