String or binary data would be truncated

There are many times where a query may result to the following error: String or binary data would be truncated. The statement has been terminated. We will go through a simple example for explaining this behavior.   Reproducing the “String or binary data would be truncated” error Creating the Sample Table Consider the following table: CREATE TABLE … Read more…

The Multi Part Identifier Could not be Bound

There are cases where a SQL Server database developer might get an error message similar to: “The multi part identifier could not be bound“. This happens because of the way the database developer handles table scopes within the query. Read the article below, in order to better understand this error, and see how easy is … Read more…

Microsoft SQL Server 2008 Feature Pack

This short post, discusses about SQL Server 2008 Feature Pack, what it is and what functionality it offers. SQL Server 2008 is undoubtedly an extremely powerful Relational Database Management System. It comes with many new features that increase the database developer’s productivity and make the life of the DBA easier. In September 2008, Microsoft has published … Read more…

Commonly used string functions in SQL Server

In this article, we provide a list of commonly used string functions in SQL Server. By combining these functions, it is possible to easily manipulate strings. For each function, we provide useful examples, that can help you better understand these functions’ usage.   REPLICATE This function given a string and an integer N, it repeats … Read more…

SQL Server 2005 Surface Area Configuration Tool

This article, discusses about the SQL Server 2005 Surface Area Configuration Tool.   What is SQL Server 2005 Surface Area Configuration Tool? An important security improvement in Microsoft SQL Server 2005 is that various of its features that could be potentially susceptible to security risks are turned off by default. One of these features is … Read more…

Getting table index information in SQL Server

At some time today, I had to compare the indices of various database tables. To this end, I needed a fast way of getting index information for specific tables. In SQL Server, there is a system stored procedure (stored in the master database) called sp_helpindex. The syntax for using it is the following: EXEC sp_helpindex … Read more…

About SQL Server 2005 Service Packs

Last night I installed Microsoft BizTalk Server 2006 R2. Though, during the configuration process of BizTalk, I was prompt that SQL Server 2005 Service Packs were not detected. At that time I though to myself; how do I find if any, and which Service Pack is installed for SQL Server? By reading the Microsoft Help … Read more…

Table-Valued Parameters (TVP) in SQL Server 2008 and Later

In this article, we will be discussing about Table-Valued Parameters (TVPs) in SQL Server 2008 and later. Support of Table-Valued Parameters is another great new feature in SQL Server 2008 and later. I am sure that all of us had to make a stored procedure or function call in SQL Server many times. In the … Read more…