Lets say we have 3 servers. One is for bbc.co.uk , one is sql server and one is cnt for running dns,kct and ntfrs services. A hacker sends a sql injection on the contact us page. He uses xp_cmdshell to see all the users names and computers names on a server and also uses it to shut down dns,kct and ntfrs services on the cnt server . Now how does this work? When he sent the sql injection to bbc server did the stored procedure get sent to the sql server and from the sql server he shutdown the dns services on the cnt server?