Skip to content

Comments

Get-DbaDbTable: Optimize usage of ClearAndInitialize#10157

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
fix_Get-DbaDbTable
Feb 16, 2026
Merged

Get-DbaDbTable: Optimize usage of ClearAndInitialize#10157
potatoqualitee merged 1 commit intodevelopmentfrom
fix_Get-DbaDbTable

Conversation

@andreasjordan
Copy link
Collaborator

followup to #10140

@potatoqualitee potatoqualitee merged commit 4ef4887 into development Feb 16, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the fix_Get-DbaDbTable branch February 16, 2026 07:37
@potatoqualitee
Copy link
Member

thank you for alllllll of these! 🤩

claude bot pushed a commit that referenced this pull request Feb 20, 2026
Azure SQL's SMO enumerator does not support the IndexSpaceUsed and
DataSpaceUsed properties. When ClearAndInitialize is called with an
explicit property list that includes these, it throws:
  "unknown property IndexSpaceUsed"

The fix removes these two properties from the list before calling
ClearAndInitialize when the server is Azure SQL. The call itself remains
unconditional (matching the pre-#10140 behavior), and the URN filter
logic from #10157 is unchanged.

Fixes #10181

(do Get-DbaDbTable, Copy-DbaDbTableData)

Co-authored-by: Andreas Jordan <[email protected]>
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.

2 participants