Skip to content

LincolnBlog.net

…my observations in the world of SQL Server, PowerShell, Linux and PostgreSQL etc…

  • Home
  • SQL Server
    • Administration
    • Diagnostics
    • Performance
    • Security
    • T-SQL
    • Tools
  • PowerShell
    • Remoting
    • Tools
  • Linux
  • .Net Development
    • Visual Studio
    • C#
    • MVC
    • ASP.NET
  • Servers
    • IIS
    • SharePoint
    • Hyper-V
    • MSMQ
  • Windows

Category: Queries

About Trusted Foreign Key Contraints

Posted on 10/07/201410/07/2014 by Lincoln Bovee'

I will post some of my findings about trusted foreign keys and constants here since this has become a minor issue at work.…

Read More

Database Availability State Statuses

Posted on 07/11/2014 by Lincoln Bovee'

The possible values in the State and State_Desc columns of sys.databases are: 0 = ONLINE 1 = RESTORING 2 = RECOVERING 3 =…

Read More

T-SQL Querying and Query Processing Order

Posted on 06/23/201401/21/2019 by Lincoln Bovee'

The order in which we write T-SQL queries happen in this order:

1
2
3
4
5
6
SELECT
FROM
WHERE
GROUP BY
HAVING
ORDER BY

however, the order the Query Processor on SQL Server processes…

Read More

SQL Server coding and naming conventions and best practices and guidelines

Posted on 05/30/2014 by Lincoln Bovee'

Here is a good blog post on SQL Server coding and naming conventions: Database coding conventions, best practices, programming guidelines Views – 3024

Read More

Using EXISTS for Functions, Stored Procedures and Databases

Posted on 01/28/201402/07/2014 by Lincoln Bovee'

Here is a segment of code you should add to any T-SQL that is dropping a function or stored procedure to make sure…

Read More

A Simple Overview of a SQL Query

Posted on 01/23/2014 by Lincoln Bovee'

Here are the 4 basic steps all queries go through: 1. Parsing: The query is examined by SQL Server to syntax errors, invalid…

Read More

Execution Plan Notes

Posted on 11/19/201310/09/2017 by Lincoln Bovee'

Clustered Index Seek: performed where there is a WHERE clause and the search parameter is included in the clustered index. Clustered Index Scan:…

Read More

SQL Server 2012 DMV’s (Dynamic Management Views)

Posted on 09/23/201305/21/2015 by Lincoln Bovee'

Notes about DMV’s in General DMV data is discarded when the SQL Server service is restarted as it is stored in memory and…

Read More

SQL Server 2012 Internals

Posted on 10/12/020103/27/2014 by Lincoln Bovee'

Life Cycle of a Query The command parser evaluates the query and generates a hash to see if the buffer pool has an…

Read More

Posts navigation

Previous 1 2

Recent Posts

  • About TempDB and the Version Store 07/16/2019
  • Using PowerShell to Failover Availability Groups and WFC Cluster Nodes 05/21/2019
  • About Availability Groups Database Seeding 04/19/2019
  • About Collations in SQL Server 04/10/2019
  • PostgreSQL vs. SQL Server Notes 02/13/2019
  • Restoring a database using STOPATMARK 01/11/2019
  • Availability Groups: Things to remember 12/07/2018
  • Properly Taking a Cluster Offline for Disk Maintenance 08/14/2018
  • Building an AlwaysOn Availability Group SQL Cluster 03/07/2018
  • Some database design guidelines and best practices 01/29/2018

RSS Paul Randal’s Blog

  • 2024: the year in books 01/01/2025 Paul Randal
  • 2023 (not a typo!): the year in books 12/29/2024 Paul Randal
  • Black Friday Super Sale! 10/31/2024 Paul Randal
  • Summer School Savings SALE is live! 07/03/2024 Paul Randal
  • The Curious Case of… missing log information 05/05/2024 Paul Randal

RSS MSN PowerShell Blog

  • AI Shell Preview 4 Release! 05/21/2025 Steven Bucher
  • PowerShell, OpenSSH, and DSC team investments for 2025 04/14/2025 Steve Lee
  • Authoring Enhancements in Microsoft Desired State Configuration v3.0.0 03/12/2025 Jason Helmick
  • Get started with Microsoft Desired State Configuration v3.0.0 03/12/2025 Jason Helmick
  • Announcing Microsoft Desired State Configuration v3.0.0 03/12/2025 Jason Helmick
Powered by Newp WordPress Theme. © 2025 LincolnBlog.net. All Rights Reserved.