🔥 Greg Eakin
This is an experiment in configuring an existing USDA Nutrition Database in NHibernate.
- Unzip the Full Version of the SR28 ASCII file format into the data folder.
- Unzip the patch file (May 2016) into the data2 folder. Overwrite the DATASRCLN.txt and sr28_doc.pdf
- SqllocalDB i
- SqllocalDB create "SR28" -s
- sqlcmd -S "(localdb)\SR28" -Q "CREATE DATABASE Nutrish"
- Run the DBSetup.exe project
US Department of Agriculture, Agricultural Research Service. 2016. Nutrient Data Laboratory. USDA National Nutrient Database for Standard Reference, Release 28 (Slightly revised). Version Current: May 2016. http://www.ars.usda.gov/nea/bhnrc/mafcl
- NHibernate
- SQL Server
- SQL Server Management Sdutio
- Visual Studio
- ReSharper
- Unit Tests
- Git Extensions
- docker exec -it sqlserver-sqldb-1 psql -U sqlserver -c "CREATE database sr28;"
- docker exec -it sqlserver-sqldb-1 psql -U sqlserver -c "CREATE USER postgres;"
- docker exec -it sqlserver-sqldb-1 psql -U sqlserver -c "ALTER USER postgres WITH PASSWORD 'sqlserver';"
- docker exec -it sqlserver-sqldb-1 psql -U sqlserver -c "GRANT ALL PRIVILEGES ON DATABASE sr28 TO postgres;"
- docker exec -it sqlserver-sqldb-1 psql -U sqlserver -c "ALTER USER postgres WITH SUPERUSER;"