Skip to content
  • Facebook
  • GitHub
  • YouTube
  • Pinterest
My Tec Bits
  • Home
  • Microsoft
    • .Net
      • ASP.NET
      • MVC
      • Visual Studio
    • IIS
    • SQL Server
      • SQL Server 2019
      • SQL Server 2017
      • SQL Server 2016
      • SQL Server 2014
      • SQL Server 2012
      • SQL Server 2008
    • Windows OS
  • Web Development
    • Java Script
    • Jquery
    • Python
    • Bootstrap
    • Zurb Foundation
    • Web Security
  • More
    • macOS
    • Reviews
  • Online Tools
    • Fitness Calculators
    • Encoders & Decoders
    • Cryptography
    • Unit Converters
    • Math. Calculators
    • Date & Time Calculators
    • Finance Calculators

SQL Server

Articles related to SQL Server, SQL Queries, Stored procedures, databases, etc..

How To Get The Week Number Of Year In SQL Server?

Jun 13, 2019 by Beaulin Twinkle
Get The Week Number Of Year

Here is the simple tip to get the week number of the year In SQL Server using an in-built function.

Categories SQL Server Tags SQL, SQL Server 2017, SQL Tips, Transact-SQL (T-SQL) 1 Comment

How To Get Name of Month In SQL Server?

Jun 12, 2019 by Beaulin Twinkle
Get the name of month in SQL Server

Quick tip for getting the name of month In SQL Server for a specific date or current date.

Categories SQL Server Tags SQL, SQL Server 2017, SQL Tips Leave a comment

IIF vs CASE in SQL Server

Jun 7, 2019 by Beaulin Twinkle
IIF vs CASE

Let us see the major differences between IIF vs CASE. IIF is a logical function and CASE is a language expression.

Categories SQL Server Tags SQL, SQL Server 2008, SQL Server 2012, SQL Server 2017, Transact-SQL (T-SQL) 2 Comments

Collecting Poor Performing Queries And Storing Them For Analysis (Using Extended Events)

Dec 20, 2018 by Beaulin Twinkle
Using Extended Events Demo 01

Simple step by step illustration for collecting poor performing queries or batches and store them for further analysis in SQL Server using Extended Events.

Categories SQL Server Tags Extended Events, Performance, SQL, Transact-SQL (T-SQL) Leave a comment

Collect Poor Performing Queries And Store Them (Using Profiler)

Dec 20, 2018Dec 16, 2018 by Beaulin Twinkle
Collect Poor Performing Queries

How to collect poor performing queries or batches and store them in a database table for further analysis in SQL Server using MSSQL Profiler?

Categories SQL Server Tags Performance, SQL, SQL Server Profiler, Transact-SQL (T-SQL) Leave a comment

Is It Good To Use VARCHAR(MAX) Instead Of VARCHAR(N)?

Dec 6, 2018 by Beaulin Twinkle
VARCHAR(MAX) vs VARCHAR(N)

Is it a good practice to use VARCHAR(MAX) instead of VARCHAR(N)? We will see the answer and the reason for it in this article.

Categories SQL Server Tags SQL, SQL Tips, Transact-SQL (T-SQL) Leave a comment

VARCHAR(MAX) vs VARCHAR(N)

Dec 6, 2018Nov 30, 2018 by Beaulin Twinkle
VARCHAR(MAX) vs VARCHAR(N)

VARCHAR(MAX) vs VARCHAR(N). Comparing the differences, advantages and disadvantages between VARCHAR(MAX) and VARCHAR(N).

Categories SQL Server Tags SQL, SQL Tips, Transact-SQL (T-SQL) Leave a comment

Extract Numbers From String In SQL Server

Mar 4, 2020Nov 15, 2018 by Beaulin Twinkle
Extract Numbers From String

How to extract only the numbers from string value In SQL Server? Here is a function which extract the sets of numbers from alpha numeric strings.

Categories SQL Server Tags SQL, SQL Tips, Transact-SQL (T-SQL) 2 Comments

SELECT vs SET: Which Is Better In SQL Server?

Nov 8, 2018 by Beaulin Twinkle

Which Is Better SET or SELECT? In this article you will see the major differences of SELECT vs SET and the comparison between them in table from.

Categories SQL Server Tags SQL, SQL Tips, Transact-SQL (T-SQL) Leave a comment

Trace Errors And Exceptions Using Profiler

Oct 24, 2018 by Beaulin Twinkle
Trace Errors And Exceptions Using Profiler

How to trace errors and exceptions using profiler in SQL Server? Using SQL Server profiler is the easiest way to capture the errors and exceptions occurring in the SQL Server database.

Categories SQL Server Tags SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server Profiler, SQL Tips Leave a comment

Launching SQL Server Profiler

Dec 16, 2018Oct 19, 2018 by Beaulin Twinkle
Launching SQL Server Profiler

How to launch SQL Server profiler in windows workstation? Here is the easiest option and step by step instruction for launching SQL Server profiler.

Categories SQL Server Tags SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server Profiler, Windows 10 Leave a comment

Saving Profiler Trace Results To A Table

Oct 17, 2018 by Beaulin Twinkle
Saving Profiler Trace Results To A Table

How to save the collected profiler trace to a table in SQL Server? Here are the steps for saving profiler trace results to a table for further analysis.

Categories SQL Server Tags SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server Profiler, SQL Tips Leave a comment

Monitoring Specific Table Using SQL Profiler

Oct 6, 2018 by Beaulin Twinkle
Monitoring Specific Table Using SQL Profiler

Monitoring specific table using profiler in SQL Server? Here is a simple trick to capture and monitor all the queries and stored procedures executed against a table.

Categories SQL Server Tags SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server Profiler, SQL Tips Leave a comment

Using Filters In Profiler Trace

Sep 13, 2018 by Beaulin Twinkle
Capturing Only Stored Procedures Using Profiler

What are filters in SQL Server profiler trace and how to use them to capture various events? Here I have explained using filters in profiler trace and when to use them.

Categories SQL Server Tags SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server Profiler Leave a comment

Capturing Stored Procedure’s Parameter Values

May 30, 2019Sep 13, 2018 by Beaulin Twinkle
Capturing Stored Procedure's Parameter Values

How to capture a stored procedure and the parameter values passed to it every time it is executed? Here is a method for capturing stored procedure’s parameter values using SQL Server Profiler.

Categories SQL Server Tags SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server Profiler, SQL Tips Leave a comment

Capturing Only The Stored Procedures Using Profiler

Sep 12, 2018Sep 6, 2018 by Beaulin Twinkle
Capturing Only Stored Procedures Using Profiler

How to capture only the SQL Server stored procedures using profiler? Using SQL Server profiler trace to trap all the stored procedures executed against a database.

Categories SQL Server Tags SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server Profiler, SQL Tips Leave a comment

Debugging Queries Inside Stored Procedure Using Profiler

Oct 19, 2018Sep 5, 2018 by Beaulin Twinkle
SQL Server Profiler Trace properties Events

How to use SQL Server profiler to capture and debug the queries executed from inside the stored Procedure? Here is the step by step instruction for debugging queries inside stored procedure using profiler.

Categories SQL Server Tags SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Server Profiler, SQL Tips 3 Comments

Filter Profiler Trace To Display Events From A Specific Database

Sep 5, 2018Aug 30, 2018 by Beaulin Twinkle
Filter Profiler Trace To Display Events From A Specific Database

How to filter a SQL Server profiler trace to display events from a specific database. Step by step instruction to filter the profiler to trap only the events for a specific database alone.

Categories SQL Server Tags SQL Server 2017, SQL Server Profiler, SQL Tips 2 Comments

Reduce Index Fragmentation

Sep 13, 2018Aug 29, 2018 by Beaulin Twinkle
Reduce Index Fragmentation - Reorganize Indexes popup window

Here is the T-SQL queries to reduce index fragmentation by using either INDEX REORGANIZE or INDEX REBUILD. You will also see when to REORGANIZE and REBUILD.

Categories SQL Server Tags SQL, SQL Server 2017, SQL Sever Management Studio (SSMS), Transact-SQL (T-SQL) Leave a comment

How To Find Index Fragmentation

Aug 29, 2018Aug 25, 2018 by Beaulin Twinkle
Find Index Fragmentation

Here is the T-SQL query to find index fragmentation in SQL Server database. This query will list all the indexes in the database and the the fragmentation level in percent.

Categories SQL Server Tags SQL, SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, Transact-SQL (T-SQL) Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page12 Next →

Article Categories

  • Android (2)
  • Apple (22)
    • macOS (22)
  • Internet & Web Dev. (152)
    • DNN (4)
    • Java Script (10)
    • Jquery (8)
    • PHP (7)
    • Python (83)
    • Twitter Bootstrap (25)
    • Web Security (11)
    • Zurb Foundation (6)
  • Linux (4)
  • Microsoft (318)
    • .Net (69)
    • IIS (10)
    • Internet Explorer (3)
    • Office (2)
    • SQL Server (225)
    • Windows (24)
  • Networks And Distributed Systems (2)
  • Oracle (7)
    • Java (2)
    • Oracle Database (5)
  • Others (6)
  • Reviews (10)

Recent Articles

  • Installing .NET SDK in Linux Mint and debugging C# code using VS Code Jun 21, 2024
  • Generating random number in C#  Jun 6, 2024
  • How to calculate running total in SQL Server? Apr 27, 2024
  • How to import XML data into SQL Server using SELECT query? Apr 10, 2024
  • How to prevent VS Code from replacing an already opened preview tab with a subsequently opened one? Mar 13, 2024
  • Separating letters and numbers from strings in SQL Server Mar 6, 2024
  • How to call or run another application from python code? Feb 15, 2024
  • How to store images in SQL Server? Jan 17, 2024
  • Error: A table that has FILESTREAM columns must have a nonnull unique column with the ROWGUIDCOL property. Jan 8, 2024
  • Fix for Error: “FILESTREAM feature is disabled” while adding FILESTREAM Jan 4, 2024

Subscribe MyTecBits.com

Online Tools

  • Fitness Calculators
  • Encoders & Decoders
  • Cryptography
  • Unit Converters
  • Math. Calculators
  • Date & Time Calculators
  • Finance Calculators

Popular Articles

  • Upgrade python version in visual studio code python workspace
  • Where is SQL Server Configuration Manager?
  • Convert UTC DateTime to different time zones in SQL Server
  • Row Number Without Using Order By In SQL Server
  • How to exit from single-user mode in SQL Server database?
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use. Learn more...
  • Home
  • About Us
  • Contact Us
  • Site Map
  • Terms Of Use
  • Privacy Policy
© 2012 - 2025 My Tec Bits. All Rights Reserved.