Published on

December 19, 2012

Exploring SQL Server Concepts and Ideas

Welcome to our blog post on SQL Server concepts and ideas! In this article, we will discuss various topics related to SQL Server and highlight some interesting articles from the past. Let’s dive in!

Truncate Log: A Solution for Growing Log Files

In 2006, we published an article on how to truncate log files in SQL Server. This article gained popularity among DBAs and developers who were facing issues with growing log files. Although the solution provided in the article had some limitations, it served as a starting point for addressing the problem. In SQL Server 2008 and later versions, a new method was introduced to truncate log files, which improved the overall process. If you’re interested in learning more about this topic, check out our blog post on how to truncate log files in SQL Server 2008 and beyond.

The Cursor: A Powerful Tool in SQL Server

The cursor is a subject that has been both loved and abused in the history of SQL Server. While set theory is usually the preferred approach, there are cases where the cursor is the only viable solution. In one of our blog posts, we demonstrated how to write a basic cursor and provided an updated version using the AdventureWorks database. If you’re curious about the cursor and its applications, make sure to read our article on this topic.

Monitoring Query Execution: Last Ran Query and Longest Running Query

Have you ever wondered about the last few queries executed on your SQL Server? In one of our articles, we shared a quick script that displays the last ran query along with the execution time. This can be useful for troubleshooting and monitoring purposes. Additionally, we also discussed how to identify the longest running queries in SQL Server and provided a script to help performance tuning experts optimize them. Check out these articles to gain insights into query execution monitoring.

Time Management in SQL Server: WAITFOR Clause

There are situations where a T-SQL script needs to wait for a specific period of time before executing the next statement. While developers often rely on external methods to introduce delays, SQL Server itself provides a powerful time management function called WAITFOR. In our blog post, we explore two different usages of the WAITFOR clause and discuss its benefits. If you’re interested in learning more about time management in SQL Server, this article is for you.

Enhancing Developer Productivity: SQL Server Tools and Features

As a developer, it’s essential to maximize your productivity and leverage the tools and features available in SQL Server. In one of our articles, we highlighted a special feature in SQL Server 2008 that allows you to change the color of the task bar in the query editor. This simple yet effective feature helps prevent accidental execution of queries on the wrong server. Additionally, we compared sqlcmd and osql, two command-line utilities in SQL Server, and discussed the added features of sqlcmd. If you’re interested in boosting your productivity as a SQL Server developer, these articles are worth exploring.

Other Topics Worth Exploring

In addition to the topics mentioned above, we have covered various other concepts and ideas in our blog. Here are a few more articles that you might find interesting:

  • Find the location of data files using T-SQL
  • Understanding the IGNORE_DUP_KEY option in non-clustered index creation
  • Detecting and reducing Virtual Log Files (VLFs) in LDF files
  • Scripts for finding missing and unused indexes
  • Copying statistics from one server to another for performance tuning
  • Interview questions and answers for SQL Server professionals

We hope you find these articles informative and helpful in your SQL Server journey. Stay tuned for more exciting content in the future!

Click to rate this post!
[Total: 0 Average: 0]

Let's work together

Send us a message or book free introductory meeting with us using button below.