Forum Discussion
How do I use Azure Data Studio with schemas?
I had thought that a database schema was the name of the structure on which tables are interconnected by primary keys and foreign keys. But in the tool, Azure Data Studio, the user is asked to select from a pre-defined set of schemas when creating a table. What is more is that when setting up or createing a database through Azure, we are given the opportuniityh to use a sample database and this is where "SalesLT" comes from and so there must be some place where we can define a schema with Azure Data Studio. Where would that be? It was generated when deciding to use a demo sample database. So there must be some way, using SQL code or otherwise, to generate a schema.
1 Reply
Within Azure Data Studio, schemas are not inherently defined by the tool itself; rather, they are SQL Server database constructs that organize tables and other objects under a logical namespace. The SalesLT schema you encounter originates from the AdventureWorksLT sample database provided by Azure. Administrators can create or manage schemas directly through Transact‑SQL (T‑SQL) commands, ensuring proper logical separation and governance of database objects.
https://learn.microsoft.com/en-us/sql/relational-databases/security/authentication-access/create-a-database-schema?view=sql-server-ver17