Get the Whitepaper called Advanced SQL Injection To Operating System Full Control.
You can download it from the following link: https://packetstormsecurity.com/files/download/97405/advanced-sql.pdf
Source: https://packetstormsecurity.com/files/97405/Advanced-SQL-Injection-To-Operating-System-Full-Control.html