Hello
I need to use the dbatools module to copy data from server A to server B
although the dbatolls module is installed correctly I have an error with Copy-DbaDbTableData
Copy-DbaDbTableData: The term "Copy-DbaDbTableData" is not recognized as a cmdlet name, function, script file, or executable program. Check the spelling of the name, or if a
path exists, verify that the path is correct and try again.
Line Character: 11: 1
+ Copy-DbaDbTableData @params
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo: ObjectNotFound: (Copy-DbaDbTableData: String) [], CommandNotFoundException
+ FullyQualifiedErrorId: CommandNotFoundException
clear
$params = @{
SqlInstance = 'DWH'
Destination = 'BDDREPLIS\PREPROD'
Database = 'TESTO'
DestinationDatabase = 'TESTO'
Table = '[dbo].[TestBulk]'
DestinationTable = '[dbo].[TestBulk]'
AutoCreateTable = $true
}
Copy-DbaDbTableData @params