SchemaSync.getScript - 

get the alter/create script as a string