You need to sign in to do that
Don't have an account?

Creating local SQL schema from 'describeSObject' or other means
We're trying to create a local copy of our Salesforce data. We did a quick-and-dirty CSV import to get started, but everything is a varchar and we don't have any referential integrity.
How are people doing this on their local RDBMS systems? I think I could build some "CREATE TABLE ..." strings in Java using describeSObject, but is there an easier way? Or has someone already invented this wheel?
I'm already having problems using the 'field.getReferenceTo()' method. It tells me that Contact.AccountId is a reference to the "Account" object, but I don't know to which field it is referring. Of course, Contact.AccountId is a reference to Account.Id, but I don't see how to make that connection using the API.
How are you folks creating your local schema? Is there a tool to read the enterprise.wsdl file and create ANSI SQL schema or something?
Thanks,
Adam
See the data replication engine:
http://www.salesforce.com/partners/solutions.jsp?id=Integration%20(EAI/ETL)
Our professional services has also built a solution.
Also, as you mention, all the data you need is in the describeSobject call.
We're not implementing referential integrity at this time. This information isn't provided by the XML schema, although you could safely assume that fields named "ObjectId" reference the Id field on an object called "Object".
Message Edited by HaroldH on 01-25-2005 11:19 AM
It's taken a while to get to this point, but I can see the light at the end of the tunnel!!
AdamM