<@U04S8PLJWMT> we have a source of SQL Server and ...
# ask-ai
f
@kapa.ai we have a source of SQL Server and destination of Snowflake. Is there anyway in destination to dynamically created the schema name from the schema of the source?
k
Yes. Use Airbyte’s namespace feature to mirror the source schema name into the destination. Set the connection’s namespace format to mirror source structure (or use the custom format with ${SOURCE_NAMESPACE}). With a Snowflake destination (schema set to “my_schema” in examples), this will create/use destination schemas matching the source schemas (e.g., source “public” -> destination “public”). If the destination doesn’t support namespaces, the setting is ignored; Snowflake does support namespaces. (See examples under “Mirror source structure” and custom formats using ${SOURCE_NAMESPACE}.) ([What is a Namespace?](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#examples))
f
@kapa.ai can I add source connection name to the destination schema name using source_namespace?
k
A message from kapa.ai
Partially. Airbyte lets you build the destination schema (namespace) using a custom format that can include the dynamic token ${SOURCE_NAMESPACE} (the schema provided by the source, when available). It does not mention a token for “source connection name,” so there’s no documented way to inject the connection name itself—only the source’s namespace. For example, you could use my_${SOURCE_NAMESPACE}_schema to produce schemas like my_public_schema if the source schema is public ([What is a Namespace? → Custom](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace); [Examples](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#examples)).
f
@kapa.ai do we have a variable name for the destination default schema that can be used in the custom format instead?
k
A message from kapa.ai
I’m not seeing any documented variable for “destination default schema” that can be used inside the custom namespace format. The only dynamic token mentioned is ${SOURCE_NAMESPACE}. Everything else must be literal text in the custom format (e.g., my_${SOURCE_NAMESPACE}_schema) ([What is a Namespace? → Custom](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#what-is-a-namespace); [Examples](https://docs.airbyte.com/platform/using-airbyte/core-concepts/namespaces#examples)).