Difficulty: Easy
Correct Answer: Both of the two methods above will work.
Explanation:
Introduction / Context:
Database schema changes in SQL Server can be performed via T-SQL scripts or through graphical tools. Knowing both methods helps teams standardize deployments and support ad-hoc admin tasks.
Given Data / Assumptions:
Concept / Approach:
CREATE TABLE and ALTER TABLE are the canonical ways to define and evolve schema in source-controlled scripts. The GUI (Enterprise Manager / SSMS) issues the same T-SQL under the hood and can be convenient for quick changes and learning.
Step-by-Step Solution:
Verification / Alternative check:
Open a table designer in the GUI and save; the tool shows a generated script. Likewise, running CREATE/ALTER in a query window has the same effect.
Why Other Options Are Wrong:
Option A: Too restrictive—ignores GUI capability. Option B: Too restrictive—ignores T-SQL. Option D: Contradicts fundamental SQL Server behavior.
Common Pitfalls:
Relying solely on GUI without keeping scripts for version control. Making breaking changes in production without reviewing the generated T-SQL.
Final Answer:
Both of the two methods above will work.
Discussion & Comments