473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Run one more command on Process.

2
I want to run .sql script file on Oracle database using c#.net.
What I am doint is,

ProcessStartInfo processInfo = new ProcessStartInfo("sqlplus");
processInfo.Arguments = "scott@db/tiger @M:\\OracleRunScriptTest.sql";
Process exeProcess = new Process();
exeProcess.StartInfo = processInfo;
bool b = exeProcess.Start();

This is running the script, But it opens a cmd window.
And Unless and untill I close that window, it doesnt commit the changes.

If I add
processInfo.WindowStyle = ProcessWindowStyle.Hidden;
processInfo.CreateNoWindow = true

not to open window, it doesnt do anything.

So I think is I want to fire "commit", or "exit" or "quit" on same cmd exe in current Process and then close the window.

uuufffff finally finished writing my problem.
Now anybody has answer to this??
Its urgent
Mar 22 '07 #1
1 1828
NanaA
2
ALL MVPs please atleast I expect something from you guys and Gals.


I want to run .sql script file on Oracle database using c#.net.
What I am doint is,

ProcessStartInfo processInfo = new ProcessStartInfo("sqlplus");
processInfo.Arguments = "scott@db/tiger @M:\\OracleRunScriptTest.sql";
Process exeProcess = new Process();
exeProcess.StartInfo = processInfo;
bool b = exeProcess.Start();

This is running the script, But it opens a cmd window.
And Unless and untill I close that window, it doesnt commit the changes.

If I add
processInfo.WindowStyle = ProcessWindowStyle.Hidden;
processInfo.CreateNoWindow = true

not to open window, it doesnt do anything.

So I think is I want to fire "commit", or "exit" or "quit" on same cmd exe in current Process and then close the window.

uuufffff finally finished writing my problem.
Now anybody has answer to this??
Its urgent
Mar 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: RL | last post by:
Hello Perl gurus, 1. I have a web page where I can push a button (dospawn.html). 2. This button calls a CGI script (spawnboss.cgi) 3. spawnboss.cgi calls a forking perl script (forkme.pl) 4....
3
by: hangten | last post by:
Does anyone know of an alternate command to invoke an executable other than Process.Start ? I have a service that invokes an executabe. But the service has minimal privs. and I'm getting an...
4
by: jam | last post by:
Dear All, I have a command process running xcopy in console, and now I want to execute the program Rsync After the files are copied...how could i do?? Process p10=new Process();...
4
by: Primo | last post by:
Hi, This problem has been frustrating me for days and I hope you experts can help me out. I am trying to run a command, which I would normally run from the command line, from within my C#...
7
by: Denis Brkljacic | last post by:
Hi, I have made some simple ASP.NET (C#) application, that somewhere uses this command: Process aProcesses = Process.GetProcesses(Environment.MachineName); This command purpose is to find...
4
by: John Lee | last post by:
Hi, I developed a scheduler as service and kick off another console application "DTSRUN.exe" to run a dts package ProcessStartInfo psInfo = new ProcessStartInfo(command); Process process =...
6
by: Anders Both | last post by:
I want to run a application (console or window) in the asp.net process, because i need an running application on the server that can acces the same data/singleton object as my asp.net application....
8
by: John Rugo | last post by:
Hi All, I have an app the runs something, for instance copies a file. During this time my app is locked up. I have tried throwing a bunch of DoEvents in but nothing happens to allow me to work...
5
by: zseifts | last post by:
Hi everyone. I am fairly new to using stored procedures but for the past few days I've been reading up on them and I need to do the following: Get all the table names from the sysobjects table...
1
by: gazza67 | last post by:
Hi Everyone, I am writing a small .net forms app that rquires a word document to be opened. I use the command process.start(filePath). The command does just as it should and opens the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.