-
Notifications
You must be signed in to change notification settings - Fork 271
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extended properties in SQL Server #3259
Comments
Hello, we don't support inspect / modify the extended properties yet. Can you please share your use-case? What's the suppose of those properties? |
We have a database that we deploy on multiple servers for multiple clients and based on each client, we set a specific VALUE for an extended property and depending on it, we are setting some flags that we use in our stored procs that would run specific code in the SP based on each client. |
Got it, interesting use-case. I can add this support in up coming weeks. |
Yes please. |
Can you please listing kind of resources (table, view...) you have the Extended Property on it? |
Not sure about your question. They can be created with: and dropped with:
Then in our stored proc, for example we can do: declare @ExampleFlag bit = 0 if @ExampleFlag = 1 or in a query: We have multiple flags like this depending on which we are executing specific sql code. |
Hello, Yes, they are in the DATABASE scope. Will these be added in feature releases ? Thanks. |
Hello,
I have some extended properties created manually in the Azure SQL DB and when I inspect the database in the CLI with below command and I check the generated sql schema, they aren't there.
$ atlas schema inspect -u "azuresql://<hostname>.database.windows.net?fedauth=ActiveDirectoryDefault&database=<DBname>&mode=database" --format '{{ sql . }}' > schema1.sql
An example of adding an extended property:
EXEC sys.sp_addextendedproperty @name=N'<NAME>', @value=N'<VALUE>'
Are extended properties supported in atlas ?
Thanks.
The text was updated successfully, but these errors were encountered: