We are checking if SQL Azure is possible for hosting our application. In the documentation I'm reading about the SQL Azure support (see quote below). I use schemas to seperate groups of tables. For example for the seperation of default application tables and the customer specific tables.
Is there a way to use mixed schemas in a single project while being hosted in a SQL Azure database? I did not check the generated queries but what makes it that this will not work? SQL Azure supports schemas, LLBL generates queries with schema information...
SQL Azure support
LLBLGen Pro supports SQL Azure out of the box, at runtime. To make your application run on SQL Azure you have to do the following:
- Use Catalog name overwriting to overwrite your catalog's name to "". See Catalog Name Overwriting in application config files for details how to do this. This works for Selfservicing and adapter. As 'old' catalog name you specify the name of the catalog you're using in the project, e.g. 'Northwind'. As 'new' catalog you specify the empty string: "".
- Use only one catalog in your project. If you use multiple catalogs in your project, they'll be seen as one catalog on SQL Azure, as there's no catalog name allowed in SQL queries.
- It's recommended to stick to the default schema 'dbo'. If you have used a different schema in your project and you use 'dbo' on SQL Azure, use Schema Name Overwriting (similar to catalog name overwriting) in your application's config file. If you want to use a different schema on SQL Azure, use ALTER USER username WITH DEFAULT_SCHEMA = schemaname; on the SQL Azure database to set it as the default schema.