This commit is contained in:
Bob White (Zen3 Infosolutions America Inc) 2018-04-11 10:16:33 -07:00
Родитель ca034b23fe
Коммит 0eab5043dc
3 изменённых файлов: 10 добавлений и 9 удалений

3
.vscode/settings.json поставляемый Normal file
Просмотреть файл

@ -0,0 +1,3 @@
{
"python.linting.enabled": false
}

Просмотреть файл

@ -235,24 +235,22 @@ Invoke-Sqlcmd -ServerInstance $ServerName -Database $dbName -Query $query
### Copy Image Files
Write-Host "Copy Image Files into FileStream Table"
Set-Location "C:\Solutions\ImageSimilarity\Data"
Invoke-Expression ".\import_data.bat"
$src = "C:\Solutions\ImageSimilarity\Data\dotted\*"
$src = "C:\Solutions\ImageSimilarity\Data\dotted"
$dst = "\\$ServerName\MSSQLSERVER\FileTableData\ImageStore\"
copy-item -Force -Recurse -Verbose -PassThru $src $dst -ErrorAction SilentlyContinue
copy-item -Force -Recurse $src $dst -ErrorAction SilentlyContinue
$src = "C:\Solutions\ImageSimilarity\Data\leopard\*"
$src = "C:\Solutions\ImageSimilarity\Data\leopard"
$dst = "\\$ServerName\MSSQLSERVER\FileTableData\ImageStore\"
copy-item -Force -Recurse -Verbose -PassThru $src $dst -ErrorAction SilentlyContinue
copy-item -Force -Recurse $src $dst -ErrorAction SilentlyContinue
$src = "C:\Solutions\ImageSimilarity\Data\striped\*"
$src = "C:\Solutions\ImageSimilarity\Data\striped"
$dst = "\\$ServerName\MSSQLSERVER\FileTableData\ImageStore\"
copy-item -Force -Recurse -Verbose -PassThru $src $dst -ErrorAction SilentlyContinue
copy-item -Force -Recurse $src $dst -ErrorAction SilentlyContinue
Write-Host " Image Files Copied to FileStream Table"

Просмотреть файл

@ -257,10 +257,10 @@ IF ($RequireCuUpdate -eq 0)
("Powershell nap time is over")
}
###Unbind Python
Set-Location $scriptPath
invoke-expression ".\UpdateMLServer.bat"
Write-Host "ML Server has been updated"
# ###Unbind Python
# Set-Location $scriptPath
# invoke-expression ".\UpdateMLServer.bat"
# Write-Host "ML Server has been updated"
####Run Configure SQL to Create Databases and Populate with needed Data
$ConfigureSql = "C:\Solutions\$SolutionName\Resources\ActionScripts\ConfigureSQL.ps1 $ServerName $SolutionName $InstallPy $InstallR $EnableFileStream $Prompt"