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

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

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

Installing MSSQL-CLI on macOS

Jul 3, 2019Jul 19, 2018 by Beaulin Twinkle
MSSQL-CLI on macOS

MSSQL-CLI or Microsoft SQL Server CLI is an open source, cross-platform, interactive and syntax highlighting command line query tool for SQL Server. We will see how to install MSSQL-CLI on macOS.

Categories macOS, SQL Server Tags macOS High Sierra, macOS Sierra, MSSQL-CLI, SQL, SQL Server 2017 2 Comments

MSSQL-CLI: An Interactive Command Line SQL Server Query Tool

Sep 13, 2018Jul 15, 2018 by Beaulin Twinkle
MSSQL-CLI Change Database

Mssql-cli is an open source cross platform interactive command line query tool for SQL Server. It can be used as an enhanced alternative to sqlcmd.

Categories SQL Server, Windows Tags MSSQL-CLI, SQL, SQL Server 2017, Windows 10, Windows Server 2016 Leave a comment

Escape Special Characters Using STRING_ESCAPE

May 30, 2018 by Beaulin Twinkle
Escape Special Characters Using STRING_ESCAPE

Simple and clean method to escape special characters using STRING_ESCAPE system function. STRING_ESCAPE function was introduced in SQL 2016. Here we will see how to use it to escape dome of the special characters.

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

How To Get Day Of Week In SQL Server?

Mar 11, 2020Apr 18, 2018 by Dahlia Sam
How to get day of week in SQL Server

Here is how to get the day of week In SQL Server. We will see couple of inbuilt functions to get the day of week.

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

Compatibility Level Field Is Disabled In SQL Server

Apr 17, 2018Apr 13, 2018 by Beaulin Twinkle
SQL Server Compatibility Level Disabled

Unable to change SQL Server database compatibility level from management studio. Because the compatibility level field in the database properties window is disabled and grayed out.

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

Upgrade SQL Server And Database To Higher Version

Apr 13, 2018Apr 12, 2018 by Beaulin Twinkle
Upgrade SQL Server - Upgrade Screen

Upgrading SQL Server to it latest version. Here you will have the steps and tips to upgrade SQL Server and the existing database from a older version to a higher version, say 2017.

Categories SQL Server Tags SQL, SQL Server 2016, SQL Server 2017 4 Comments

Auto Generate INSERT Statements for a Table in SQL Server

Aug 18, 2018Dec 27, 2017 by Beaulin Twinkle
Auto Generate Insert Script in SQL Server 05

Easy way to auto generate INSERT statements for a table in SQL Server using SSMS. Generate insert statements from sql server tables on the fly.

Categories SQL Server Tags SQL, SQL Server 2016, SQL Server 2017, SQL Sever Management Studio (SSMS), SQL Tips 7 Comments

Inserting Line Break or Carriage Return or Tab To String In SQL Server

Aug 18, 2018Dec 21, 2017 by Beaulin Twinkle
Inserting line break or carriage return or tab to string

Adding or inserting Inserting Line Break or Carriage Return or Tab to a string in SQL Server. Quick examples for adding special characters like Line Break, Carriage Return and Tab to strings.

Categories SQL Server Tags SQL, SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Tips, Transact-SQL (T-SQL) Leave a comment

Pagination of Results in SQL Server In Efficient Way

Sep 13, 2018Dec 15, 2017 by Beaulin Twinkle
Pagination of results in SQL Server

How to do pagination of results in SQL Server In and efficient way? Best way to paginate results in SQL Server to improve performance of the application.

Categories SQL Server Tags SQL, SQL Server 2005, SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Tips, Transact-SQL (T-SQL) Leave a comment

How to get Date from DateTime data type in SQL Server?

Aug 18, 2018Dec 11, 2017 by Beaulin Twinkle
Date From DateTime Datatype

How to get date part alone from DateTime and DateTime2 data types in SQL Server? Here are few of the techniques to get date from DateTime column.

Categories SQL Server Tags SQL, SQL Server 2005, SQL Server 2008, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, SQL Tips, Transact-SQL (T-SQL) Leave a comment

Azure Data Studio: A Cross-Platform SQL Server Tool

Mar 14, 2019Nov 18, 2017 by Beaulin Twinkle
SQL Operations Studio

What is Azure Data Studio (SQL Operations Studio)? What are the salient features of SQL Ops Studio? Advantages and disadvantages of SQLOPS over SSMS.

Categories SQL Server Tags Azure SQL Database, DevOps, SQL, SQL Operations Studio (SQLOPS), SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014, SQL Server 2016, SQL Server 2017, Transact-SQL (T-SQL) Leave a comment

DROP IF EXISTS Table Or Other Objects In SQL Server

Apr 11, 2019Nov 3, 2017 by Beaulin Twinkle
SQL Server DROP IF EXISTS 01

How to drop table if it exists in SQL Server? How to drop stored procedure if it exists? How to drop function if it exists? Using DROP IF EXISTS.

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

Concatenate Multiple Rows Using STRING_AGG

Aug 18, 2018Oct 27, 2017 by Beaulin Twinkle
SQL Server Using STRING_AGG

Concatenate multiple rows into single string in SQL Server using STRING_AGG. New function STRING_AGG in SQL Server 2017 to concatinate rows of data.

Categories SQL Server Tags SQL, SQL Server 2017, Transact-SQL (T-SQL) 5 Comments
Older posts
Newer posts
← Previous Page1 … Page3 Page4 Page5 … Page8 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

  • Where is SQL Server Configuration Manager?
  • How to exit from single-user mode in SQL Server database?
  • Adding image to Python Django web app
  • Upgrade python version in visual studio code python workspace
  • Auto Generate INSERT Statements for a Table in SQL Server
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.