Improper control of generation of code ('code injection') in SQL Server allows an authorized attacker to elevate privileges over a network.