in windows batch file,how to check if connection to db is successful or not
880186Aug 4 2011 — edited Aug 4 2011I want to do some operations in batch file. So i use command "sqlplus usr/pwd@con @operation.sql" to in the batch file. But how can i check if i connect successfully? The %ErrorLevel% is always 0