Issue4106#4231
Conversation
|
Code will not allow a table to be copied into itself (especially with Truncate option as this would actually just be truncating the table. Tests required some modification to |
|
Thanks so much! To confirm, this is not a breaking change? I saw the docs update from three part to two part. |
|
The "change" to two-part is actually just clarification of how command works and not a change in functionality. The use of three part names is not really supported by the code In the current code there is a test at line 211 to require a Database when using a SqlInstance rather than piped input. To resolve the Table there is a call at line 230 to A three-part name can be passed but the database name in table must be same as the Database parameter. Using something like Database AdventureWorks2014 and Table AdventureWorks2014.[dbo].[DatabaseLog] will still work but the Database part of the Tablename does not add any value. Strictly there is functionality change as However, I think both of these were Bugs and not intended features. |
|
excellent, thank you for the explanation! merged and should be in master soon. |
Type of Change
Purpose
Fix issues in Copy-DbaDbTableData
Commands to test
Copy-DbaDbTableData