Skip to content

docs: add partition truncation tip to ALTER TABLE reference - #1

Open
soepic1 wants to merge 1 commit into
livefrom
add-partition-truncate-tip
Open

docs: add partition truncation tip to ALTER TABLE reference#1
soepic1 wants to merge 1 commit into
livefrom
add-partition-truncate-tip

Conversation

@soepic1

@soepic1 soepic1 commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

Engineers coming from other database engines (like Oracle or MySQL) frequently attempt to run ALTER TABLE <table_name> TRUNCATE PARTITION <id> on SQL Server, which throws Msg 156: Incorrect syntax near the keyword 'TRUNCATE'.

This PR adds a brief [!TIP] callout under the Partition Management section of alter-table-transact-sql.md cross-referencing TRUNCATE TABLE ... WITH (PARTITIONS (...)) to improve discoverability and prevent syntax confusion.

Checklist

  • Content is accurate and matches T-SQL syntax standards
  • Formatted using standard Learn Markdown syntax (> [!TIP])
  • Included relative link to truncate-table-transact-sql.md

Adds a tip cross-referencing TRUNCATE TABLE ... WITH (PARTITIONS (...)) for users seeking partition truncation syntax on SQL Server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant