Skip to content
Simple SQL Tutorials

Simple SQL Tutorials

Your guide to querying and developing SQL Server databases

  • Home
  • Tutorials
    • The Basics
    • Transactions
    • Normalization
    • Querying data
    • Developing Databases
    • SQL Questions
    • Identity Property
    • JOIN
    • Data Types
    • Stored Procedures
    • Window functions
    • Data Definition Language
    • Views
    • Constraints
    • Set Operators
    • Table Expressions
    • Error Handling
    • Functions
    • Indexes
    • Triggers
  • Products
  • Contact
  • Privacy Policy
  • About

How to break a WHILE loop in SQL Server: Explained with Examples

Posted on July 11, 2022August 17, 2023 by Josh D
How to break a WHILE loop in SQL Server: Explained with Examples

Reading Time: 2 minutesThe task of breaking a WHILE loop in Microsoft SQL Server is very simple. We basically break a while loop when we want to terminate the loop early. That is, earlier than the loop would have ended if left to it’s natural progression. To break a WHILE loop early, just Continue Reading

Posted In Error Handling, Querying data, The Basics

SQL Server Triggers: The Ultimate Guide for Beginners

Posted on July 4, 2022July 31, 2022 by Josh D
SQL Server Triggers: The Ultimate Guide for Beginners

Reading Time: 13 minutesSQL Server Triggers are some of the most helpful objects available to us in Microsoft SQL Server. A proper understanding of triggers is essential if you are looking to enter the field of database design and development. In this tutorial, we’ll discuss everything you need to know about triggers in Continue Reading

Posted In Triggers

How to find a string within a string in SQL Server: Explained with Examples

Posted on June 27, 2022August 17, 2023 by Josh D
How to find a string within a string in SQL Server: Explained with Examples

Reading Time: 5 minutesThe task of finding a character string within a larger character string in a SQL Server database is very easy. SQL Server has many built-in system functions that can be used for character string manipulation, one of which is the CHARINDEX function. We use the CHARINDEX system function to locate Continue Reading

Posted In SQL Questions

How to drop a constraint in SQL Server: Explained with Examples

Posted on June 20, 2022June 30, 2023 by Josh D
How to drop a constraint in SQL Server: Explained with Examples

Reading Time: 4 minutesIt’s very easy to drop a constraint on a column in a table. This is something you might need to do if you find yourself needing to drop the column, for example. SQL Server simply will not let you drop a column if that column has any kind of constraint Continue Reading

Posted In Constraints, Data Definition Language

How to drop a column in SQL Server: Explained with Examples

Posted on June 13, 2022August 17, 2023 by Josh D
How to drop a column in SQL Server: Explained with Examples

Reading Time: 4 minutesKnowing how to make modifications to the definition of a table is very important when it comes to developing Microsoft SQL Server databases. The task of deleting a column is very straightforward. In this very brief tutorial, we’ll discuss how to drop a column from a Microsoft SQL Server table. Continue Reading

Posted In Data Definition Language, SQL Questions

How to Find Text in a SQL Server Stored Procedure: Just run this one query!

Posted on May 30, 2022June 30, 2023 by Josh D
How to Find Text in a SQL Server Stored Procedure: Just run this one query!

Reading Time: 4 minutesThere might be times when you simply need to search through the objects in a SQL Server database for a specific word or text. It would be a very tedious task to open each stored procedure, function, View, etc. and look through each to see if it references the text Continue Reading

Posted In SQL Questions, Stored Procedures

What does “SET NOCOUNT ON” do in SQL Server? Explained!

Posted on May 23, 2022August 17, 2023 by Josh D
What does “SET NOCOUNT ON” do in SQL Server? Explained!

Reading Time: 5 minutesMaybe you’ve been working with SQL Server for a while and have seen “SET NOCOUNT ON” here and there, but you aren’t really sure what it does. It’s usually seen within stored procedures, but it can be used anywhere. In this very brief tutorial, we’ll discuss what the SET NOCOUNT Continue Reading

Posted In SQL Questions, Stored Procedures, The Basics

How to find foreign key references in SQL Server: Just run this one query!

Posted on May 23, 2022June 30, 2023 by Josh D
How to find foreign key references in SQL Server: Just run this one query!

Reading Time: 4 minutesSQL Server foreign key constraints are one of the most useful tools available to us for maintaining the integrity of our data. If you want to find all the foreign key references in your database, there is a very simple query you can run. Just query the sys.foreign_keys and sys.foreign_key_columns Continue Reading

Posted In Constraints, SQL Questions

How to find a SQL Server column name: Run this one simple query!

Posted on May 16, 2022June 30, 2022 by Josh D
How to find a SQL Server column name: Run this one simple query!

Reading Time: 3 minutesIf you have a particularly large database, finding a specific column might be a bit of a challenge. Maybe you don’t recall exactly what the column name is, and you’re not sure what table it belongs to. Luckily, Microsoft SQL Server has some build in system tables that can help Continue Reading

Posted In Data Definition Language, Querying data, SQL Questions

How to reseed an IDENTITY value in SQL Server: A guide for beginners

Posted on May 16, 2022June 30, 2022 by Josh D
How to reseed an IDENTITY value in SQL Server: A guide for beginners

Reading Time: 5 minutesThe IDENTITY property is one of the most useful tools available to us in Microsoft SQL Server. We basically use it to automatically populate an integer column with a new value on inserts. It’s a great way to let SQL Server manage the integer values placed in a column so Continue Reading

Posted In Data Definition Language, Identity Property, SQL Questions

Posts pagination

Previous 1 … 4 5 6 … 16 Next

Tutorial Categories

Navigation:

Home » Page 5

Sign up for our newsletter!

Recent Posts

  • “Why should I save my query as a View instead of a .SQL file?” Answered!
  • SQL Server DELETE vs. TRUNCATE: What’s the difference?
  • SQL Server COALESCE System Function: How It Works
  • Can we create indexes in table variables? YES WE CAN!
  • SQL Server WINDOW Clause: Explained!
Copyright All rights reserved | Theme: Flash Blog by Unitedtheme.
SimpleSQLTutorials.com uses cookies to provide the best experience on our website through tailored advertising. By clicking Accept, you agree to our use of cookies.AcceptPrivacy policy