Well now i feel stupid, the stored procedure is calling a database that does not exist.

Smacking my head