SQL Server Blog

SQL Server articles, tips, and technical insights from the Kutech team.

Create a Database Using SSMS

IMPORTANT: The majority of the settings you’re about to see are actually taken from the system database “model”. The model database is, as its name implies, the “model” by which all others are created. Therefore if you change settings, initial sizes, growth rates, and recovery options in the model database, then those are the defaults you will be presented with when creating a new database from scratch following the method below. If you have some settings that you wish to apply generically to all databases, then simply change them on the model database.

Read more

Create a Database Using SSMS

IMPORTANT: The majority of the settings you’re about to see are actually taken from the system database “model”. The model database is, as its name implies, the “model” by which all others are created. Therefore if you change settings, initial sizes, growth rates, and recovery options in the model database, then those are the defaults you will be presented with when creating a new database from scratch following the method below. If you have some settings that you wish to apply generically to all databases, then simply change them on the model database.

Read more

How to Create a Table in SQL Server

There are a couple of ways of achieving this, the first is using SQL Server Management Studio as a “point and click” tool, and the other is using T-SQL code.



Personally I only ever use T-SQL and therefore this article will focus on that approach. Personally I find that T-SQL offers much clearer control and power than solely using the GUI.

Read more

How to Create a Database Using T-SQL

IMPORTANT: The majority of the settings you’re about to see are actually taken from the system database “model”. The model database is, as its name implies, the “model” by which all others are created. Therefore if you change settings, initial sizes, growth rates, and recovery options in the model database, then those are the defaults you will be presented with when creating a new database from scratch following the method below. If you have some settings that you wish to apply generically to all databases, then simply change them on the model database.

Read more

How to Create a Database Using T-SQL

IMPORTANT: The majority of the settings you’re about to see are actually taken from the system database “model”. The model database is, as its name implies, the “model” by which all others are created. Therefore if you change settings, initial sizes, growth rates, and recovery options in the model database, then those are the defaults you will be presented with when creating a new database from scratch following the method below. If you have some settings that you wish to apply generically to all databases, then simply change them on the model database.

Read more

Basic Guide to SQL Server Configuration (sp_configure)

Configuring your SQL Server correctly is one of the key tasks that must be completed in order to get the best performance out of your system.



I won’t go into every single configuration option, just those which I tend to change and tamper with when installing and running a new SQL Server instance.

Read more

Basic GROUP BY Usage

This is a key phrase when referring to any aggregate function as all aggregate functions require grouping in order for the data to have any meaning. As such this is a mandatory key phrase to be used within all aggregation.

Read more

Basic DELETE statement

Okay, this time an UPDATE simply won’t suffice. Something is badly wrong and we need to remove a record rather than just update it.



As in previous posts, if you have not read the Basic INSERT Statement document then please run the following code as we will use the resulting table in our examples:

Read more

Basic INSERT statement

This article is a simple and brief introduction to the INSERT statement within SQL Server. This, as the name suggests, is the method used to enter data into our databases.

For this example we'll use a Person table which you'll need to create using the following script:

Read more

Basic SELECT statement (with WHERE clause)

This article is a simple and brief introduction to the SELECT statement within SQL Server. This is the most basic and most useful tool in the SQL language. It allows us to see what data is being held in our databases.

Read more

Basic UPDATE statement

Okay, we’ve inserted data, selected data, but what happens if we find some of our data is wrong? That’s where we need to UPDATE our records.



As in previous posts, if you have not read the Basic INSERT Statement document then please run the following code as we will use the resulting table in our examples:

Read more
An unhandled error has occurred. Reload 🗙