It sounds like you are trying to write your own version of the DDT. The DDT is a database designer and deployment tool, which sounds like this is what you are trying to do. However, the DDT doesn't have a supporting API at the moment which is what it sounds like you are needing. From what I can tell you want to allow your users to create meta-data within your application then deploy that data for them. At this point, you would have to create your own deployment engine as the DDT doesn't have an API or run-time desitner like the Role-Based Security to allow for this.Depending on the complexity of your application and needs for database deployment, this can be a very long and cumbersome task. But if you are going to travel down this path, I recommend using SMO (SQL Server Management Objects).