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.

Equal Action to Identical Databases

Category: IT, Transact-SQL Tags: , , , Comments: 0

If I administer 345 identical databases I can do equal action to all of them (or some of them) easy by selecting the names of the databases, generate dynamic code, execute it and select the result and the errors (is any).

Select server logins and their roles in SQL Server

Category: IT, MS SQL Server Tags: , , Comments: 0

To view all the server logins and their roles I use the system view sys.syslogins and CASE to convert 1 to “Yes” and 0 to “No”.