You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to copy-dbadbtabledata and it is not working using windows integrated authentication.
First it asks for both servers credentials, I thought it is a bug.
I gave same windows login credentials for both source and destination.
Later sometimes it gives an error as "[Copy-DbaDbTableData] You must pipe in a table or specify SqlInstance, Database and [View|Table]." sometimes it wont give error.
either way the data is not getting copied
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to copy-dbadbtabledata and it is not working using windows integrated authentication.
First it asks for both servers credentials, I thought it is a bug.
I gave same windows login credentials for both source and destination.
Later sometimes it gives an error as "[Copy-DbaDbTableData] You must pipe in a table or specify SqlInstance, Database and [View|Table]." sometimes it wont give error.
either way the data is not getting copied
Copy-DbaDbTableData -SqlInstance "SQL1\InstD" -Database "DB123_Dev"
-Query "SELECT * FROM DWDB.TableName WHERE YearSet = '2020' "
-Destination "SQL2\InstQ" -DestinationDatabase = "DB123_QA" -DestinationTable = "DWDB.TableName" -Truncate
Note: I can do these commands without using credentials "Invoke-DbaQuery", "Write-DbaDbTableData" and works.
Also, the end goal is to transfer 10 Million rows of data. Is there a better way using dbatools? If not, will go to SSIS package.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions