Skip to content

Commit

Permalink
Fix data script.
Browse files Browse the repository at this point in the history
  • Loading branch information
EJocys committed Apr 15, 2020
1 parent e314a78 commit a71d280
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x360ce.Data/Change Scripts/Backup/Data_Import_To_Server.bat
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ GOTO:EOF
::=============================================================
:FKD :: DISABLE FOREIGN KEYS
::-------------------------------------------------------------
:: Parameters: FileName
:: Parameters: <FTable> <FConstrain> <FColum>
echo Disable Constraint: %1 %2
echo ================================================= >> %log%
echo Disable Constraint: %1 %2 >> %log%
Expand All @@ -212,13 +212,13 @@ GOTO:EOF
::=============================================================
:FKE :: ENABLE FOREIGN KEYS
::-------------------------------------------------------------
:: Parameters: FileName
:: Parameters: <FTable> <FConstrain> <FColum> <RTable> <RColumn>
echo Enable Constraint: %1 %2
echo ================================================= >> %log%
echo Enable Constraint: %1 %2 >> %log%
echo ------------------------------------------------- >> %log%
echo. >> %log%
set cmd1=ALTER TABLE [dbo].[%1] WITH CHECK ADD CONSTRAINT [%2] FOREIGN KEY([%3]) REFERENCES [dbo].[%3] ([%4])
set cmd1=ALTER TABLE [dbo].[%1] WITH CHECK ADD CONSTRAINT [%2] FOREIGN KEY(%3) REFERENCES [dbo].[%4] (%5)
set cmd2=ALTER TABLE [dbo].[%1] CHECK CONSTRAINT [%2]
%sqlcmd% %slqo% -d %cat% -Q "%cmd1%" >> %log%
%sqlcmd% %slqo% -d %cat% -Q "%cmd2%" >> %log%
Expand Down

0 comments on commit a71d280

Please sign in to comment.