Microsoft held talks about taking over Salesforce.com, but negotiations fell through over price differences, sources said.