One of the key tasks of a database administrator is to ensure that the SQL Server database is running efficiently and effectively. One way to do this is by using performance tuning techniques, which can help identify and resolve any performance bottlenecks or issues in the database. One performance tuning tip for SQL Server is to use the sys.dm_exec_query_stats dynamic …

SQL Performance – Finding total elapsed time Read more »

To rename a table in SQL Server, you can use the sp_rename system stored procedure. This stored procedure allows you to change the name of an existing table, without having to drop and re-create the table. To use the sp_rename stored procedure, you need to specify the current name of the table and the new name you want to give …

Renaming a Table in SQL Server Read more »

A LEFT OUTER JOIN with exclusion is a type of JOIN operation in SQL that combines data from two tables, based on a JOIN condition, and excludes the rows that match the JOIN condition. This type of JOIN is called an outer JOIN with exclusion because it includes the rows from the left (or first) table that do not have …

Left Outer JOIN with Exclusion Read more »

A common table expression, also known as a CTE, is a temporary named result set in SQL that can be used within a SELECT, INSERT, UPDATE, or DELETE statement. It is defined using the WITH keyword, and can be thought of as a temporary view or inline table-valued function. One of the primary advantages of using a common table expression …

Common Table Expressions Read more »

Inner Join versus Outer Join, A SQL Server inner join is a type of join that combines records from two or more tables in a database based on the values of the joined columns from each table. Inner joins only return rows that have matching values in the joined columns. In contrast, an outer join will return all rows from …

Inner Join versus Outer Join Read more »

Sometimes we all need a little help without a long term commitment. That why we created our SQL Server Mentoring service at Stedman Solutions. SQL Server Mentoring is a training / consulting option for those who just need a little help or direction. This is a cost-effective approach for those who need just a little help. Some call it coaching, …

SQL Server Mentoring – Do you need some occasional help? Read more »

If you’re growing your business, you don’t have time to manage your databases. Let us manage your SQL Server so you can seize the day! Our Managed Services are so comprehensive you would think we’re on your payroll. So you can focus on what the business really needs. Below is what our Managed Services can provide you! Our monthly managed services is …

Focus on what’s best – leave us the rest Read more »

In SQL Server, an index is a data structure that allows you to quickly retrieve data from a table based on the values of one or more columns. There are two main types of indexes in SQL Server: clustered and nonclustered indexes. A clustered index A nonclustered index The main difference between a clustered and a nonclustered index is how …

SQL Server and Clustered vs. NonClustered Indexes Read more »

In SQL Server, missing indexes are indexes that the query optimizer has determined would improve query performance, but do not exist in the database. Identifying and creating missing indexes can improve query performance and help ensure that the database is running efficiently. To find indexes that are missing in SQL Server, the administrator can use the sys.dm_db_missing_index_details dynamic management view. …

How to Find Missing Indexes Read more »

To find the version of SQL Server that is being used, you can use the @@VERSION system function. This function returns a string that contains information about the version of SQL Server, the operating system, and other details. To use this function, you can run the following query: This query returns the version column, which contains the information returned by …

Finding the version of SQL Server being used Read more »