How to store UTF-8 data in SQL Server

Category: IT, MS SQL Server, PHP Tags: , , , , , Comments: 2

Very frequently we need to use the data type UTF-8 to store a data in different languages. As described in the MSDN page the UTF-8 data type is stored in the ‘Samples’ folder in SQL Server (Server\100\Samples\Engine\Programmability\CLR\UTF8String). You just need to activate it.

SELECT * or SELECT [Column Name] in IF statement in MS SQL Server

Category: IT, MS SQL Server, Transact-SQL Tags: , , Comments: 1

When we decide how to manipulate the data, we use IF statement verification. For example if we export information about merchant sales, we have two common groups of merchants – these we scan (with serial numbers) and these we don’t scan. For both of them we use two BEGIN… END blocks. To verify the type [...]