removed GO statements

This commit is contained in:
2024-03-07 17:13:13 +01:00
parent ca816b2a5c
commit 4d0e306b03
3 changed files with 4 additions and 5 deletions

View File

@@ -21,14 +21,13 @@ Modifications:
07.03.2024 TSC Rewrote to connect to the central through the pharmacy linked server ArizonaCash
The values in the local pharmacy are updated as well
=============================================================================*/
USE master;
GO
USE [master];
DECLARE @ou_id INT;
DECLARE @fqdn VARCHAR(100) = '$fqdn';
DECLARE @alias VARCHAR(100) = '$alias';
EXECUTE Arizona.[dbo].[sp_bmc_Bmc_Applic_Default]
EXECUTE [Arizona].[dbo].[sp_bmc_Bmc_Applic_Default]
@in_job_type = 3,
@in_param_int_1 = NULL, /* Company */
@in_param_int_2 = NULL, /* Subsidiary */

View File

@@ -22,7 +22,6 @@ Modifications:
The values in the local pharmacy are updated as well
=============================================================================*/
USE [master];
GO
DECLARE @ou_id INT;
DECLARE @fqdn VARCHAR(100) = '$fqdn';

View File

@@ -537,7 +537,7 @@ if($true -eq $instanceReachable){
$query = $query.Replace("`$fqdn", $fqdn.HostName)
$query = $query.Replace("`$alias", $alias)
Invoke-Sqlcmd -ServerInstance $SqlInstance -Database master -Query $query -Credential
Invoke-Sqlcmd -ServerInstance $SqlInstance -Database master -Query $query
Write-Output "Executed 20_update_system_site_centrale.sql"
##step 21: update Point_of_sale on the central
@@ -553,6 +553,7 @@ if($true -eq $instanceReachable){
if($macs.Count -gt 1){
#we have several mac addresses, unable to define which one should be used in point_of_sale
Write-Error "Several mac addresses are active, no clue which one to save in Point_of_sale"
exit 42102
}
else{
$query=Get-Content -Path .\21_update_point_of_sale_centrale.sql