Azure Cosmos DB - migrate relational to Cosmos DB

From Ittichai Chammavanijakul's Wiki
Jump to navigation Jump to search
  • Download

set FILE_PATH=C:\\TEMP\\
set COSMOSDB_URI=https://cosmosdb.documents.azure.com:443
set ACCOUNT_KEY=123456789012345678901234567890==
set DB_NAME=COSMOSDB

dt.exe /s:CsvFile /s.Files:"%FILE_PATH%data.csv" /t:DocumentDB /t.ConnectionString:AccountEndpoint=%COSMOSDB_URI%;AccountKey=%ACCOUNT_KEY%;Database=%DB_NAME%; /t.Collection:collect1
Transferred: 88542
Failed: 0
Time spent: 00:16:37.7533047