How-to articles, tricks, and solutions about SQL-SERVER

Connect to SQL Server through PDO using SQL Server Driver

Here is an example of how to connect to a SQL Server database using PDO and the SQL Server driver:

Converting Varchar Value to Integer/Decimal Value in SQL Server

In SQL Server, you can convert a varchar value to an integer or decimal value using the CAST or CONVERT function.

How do I connect to a SQL Server 2008 database using JDBC?

To connect to a SQL Server database using JDBC, you will need to use the JDBC driver for SQL Server.

How to escape strings in SQL Server using PHP?

In PHP, you can use the sqlsrv_real_escape_string() function to escape strings in SQL Server.