SQL >> Databasteknik >  >> RDS >> Sqlserver

sqlcmd med utdatafil och skärmutdata

Jag kunde inte heller hitta något bättre sätt än det @Sparky föreslog. Följande kod lägger till hans förslag:

@echo off :: this will execute the script into PROCESS.log sqlcmd -i Scripts\STEP01.sql -o PROCESS.log -S MYSERVER -E -d MYDATABASE :: this present the contents of PROCESS.log to the screen echo The result of the query was: type PROCESS.log pause CHOICE /C:YN /M "Is the result accord?" IF ERRORLEVEL 2 GOTO ENDWITHERROR IF ERRORLEVEL 1 GOTO STEP2 
  1. ClassNotFoundException med Elastic Beanstalk och Tomcat 7

  2. Returnera utdata från lagrad procedur via EF utan tabellvärden

  3. Exportera till CSV och komprimera med GZIP i Postgres

  4. Anslut MDF utan loggfil