@Billycheng Good day!
To correct your SQL code and specify the managed storage location, you should replace the placeholders in the MANAGED LOCATION
clause with your actual storage container name, storage account name, and the path to the directory within the storage account.
Here is an example of how you might modify your SQL code:
sql
CREATE CATALOG IF NOT EXISTS billy_cheng_dawd_13May2024
MANAGED LOCATION 'abfss://myContainer@myStorageAccount.dfs.core.windows.net/myDirectory';
USE CATALOG billy_cheng_dawd_13May2024;
CREATE SCHEMA IF NOT EXISTS dawd_v2;
In this example, myContainer is the name of your storage container, myStorageAccount is the name of your storage account, and myDirectory is the path to the directory within the storage account.
Please replace myContainer, myStorageAccount, and myDirectory with your actual storage container name, storage account name, and the path to the directory within the storage account, respectively.
Good reads:
1. https://docs.databricks.com/en/connect/unity-catalog/managed-storage.html
2. https://docs.databricks.com/en/data-governance/unity-catalog/get-started.html
Please let us know if you have any questions or concerns.
Kind regards,
Yeshwanth