CREATE DATABASE [new_sqlauth] AS COPY OF [sqlauth-demo].[sqlauth-DemoDB] GO
I am working on a Windows Phone 8.1 Runtime app and have a ListView to display data on a detail page. The problem is that by default the tilt animation is enabled. This is not wanted because it giv…
mongoimport --db DATABASE_NAME --collection COLLECTION_NAME --file JSON_FILE_NAME.json
If you are attempting to run mongorestore from inside the JS shell , you ‘ll encounter this error.
Mongorestore is a standalone application, and is run directly from the terminal.
The following will not work:
C:\Program Files\MongoDB\Server\3.2\bin>mongo.exe MongoDB shell version: 3.2.1 connecting to: test > mongorestore --db test --drop \dump\test 2016-03-24T19:21:44.206+0530 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:15 >
If you run mongorestore directly from the terminal you should be successful:
C:\Program Files\MongoDB\Server\3.2\bin>mongorestore [path_to_dump_directory]\dump