Hi All,
I m executing the below line from vb.net
Microsoft.VisualBasic.Interaction.Shell("osql -S sap-server -U sa -P sa123 -d TBP1 -i C:\sql1.sql", AppWinStyle.Hide)
This command is successfully getting executed
since i m running an sql script from sql1.sql file, there may be some error while execution
But i find that it does not generate any error, irrespective of Query being correct or incorrect
How can i find that the above command is successfully executed
Awaiting Reply
Sanjay
Vijaya KadiyalaPosted Oct 5, 2008, 9:31 AM
Hi
What operations you are doing in that .sql file? if possible try to put the some message/status in Database. Once the control comes to the VB.Net then query the table to see the message/status of the execution.
Thanks -- Vj
-- For Microsoft related queries
http://dotnetvj.blogspot.com
-- For Oracle related queries
http://oravj.blogspot.com
starPosted Sep 18, 2008, 5:59 AM
Hi,
this link should be somewhat helpful to u ...
http://www.cpearson.com/excel/ShellAndWait.aspx
best luck !