Sysadmins of the North (Page 80)

Drop all tables, SPs, triggers, constraints and dependencies in one SQL statement

A quicky, might always come in handy. Found onĀ StackOverflow. Drop all tables, SPs, triggers, constraints and dependencies in an SQL Server database in one SQL statement.

Read more...

Connect to MS SQL Server with PHP 5.3+

Connect to a Microsoft SQL Server database with PHP 5.3+ using the SQLSRV API and sqlsrv_connect. As of PHP 5.3.2 you have to use the SQLSRV API functions to connect to an Microsoft SQL Server database from PHP. For example, use sqlsrv_connect() to create a connection resource and open a connection. The main difference with the older mssql functions of PHP is that SQLSRV requires an Array() with connection information, instead of strings.

Read more...

Unauthorized Access: Bypassing PHP strcmp()

The following was posted to the Web Security Mailinglist: Unauthorized Access: Bypassing PHP strcmp(). A way to bypass PHP's strcmp() binary safe string comparison function.

Read more...