You are here:Home » tsql » OSQL Apply DB Changes

OSQL Apply DB Changes

--Wite below code in Bat file
osql -UDBA -Pdba@eetpl -Sdsk07 -dmaster -i d:\in.txt -o d:\res1.txt
osql -UDBA -Pdba@eetpl -Sdsk07 -dTESTDB -i d:\in.txt -o d:\res2.txt



-- d:\in.txt is a input file --write DB changes here
-- d:\res2.txt output file

-- to disable line use rem

like


osql -UDBA -Pdba@eetpl -Sdsk07 -dmaster -i d:\in.txt -o d:\res1.txt
rem osql -UDBA -Pdba@eetpl -Sdsk07 -dTESTDB -i d:\in.txt -o d:\res2.txt

second line will not execute