Need help to write bat file that execute sql scripts in (sql server 2008 and another 3 files.?

后端 未结 4 1662
北荒
北荒 2021-01-05 06:18

I am sure these has been asked before but cannot find clear instruction how to create a batch file lets call it \"Update Database\" this batch file should

Execute s

4条回答
  •  有刺的猬
    2021-01-05 06:46

    Hope this helps you :

    sqlplus UserName/Password@DataBase @C:\myPath\InsertUsername.sql
    

    P.S : Don't forget to add the command "commit;" at the end of sql file (InsertUsername.sql), this command order Oracle to save performed changes in darabase

提交回复
热议问题