• and BTW - when the sproc is executed from management studio & not called as sql server agent job, it works. Weird.