Difficulty: Easy
Correct Answer: Incorrect
Explanation:
Introduction / Context:
SQL DDL statements (CREATE/ALTER) are the authoritative way to define schema. However, SQL Server also provides graphical and programmatic alternatives that ultimately generate DDL under the hood. The statement that there is only one way is therefore too restrictive.
Given Data / Assumptions:
Concept / Approach:
While the database engine ultimately executes DDL, administrators and developers can author those changes via GUIs, scripts, automated migrations, or DevOps pipelines. SSMS designers allow table creation and alteration through dialogs that produce DDL. Migration tools generate and run versioned CREATE/ALTER scripts. Thus, “only one way” is incorrect.
Step-by-Step Solution:
Verification / Alternative check:
Inspect the generated T-SQL from GUI actions; examine migration scripts in source control to see CREATE/ALTER emitted automatically.
Why Other Options Are Wrong:
Common Pitfalls:
Relying solely on GUI without scripting repeatable deployments; neglecting source control for schema.
Final Answer:
Incorrect
Discussion & Comments