G
gopal
Hi,
I am trying to call the OSQL utility from my C# console application and
i am having problems
i have the following code
In Main method
ProcessStartInfo psi = new ProcessStartInfo("osql","");
psi.RedirectStandardInput = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardError = false;
psi.CreateNoWindow = false;
psi.UseShellExecute = false;
Process pc = Process.Start(psi);
Console.WriteLine(pc.StandardOutput.ReadToEnd());
pc.WaitForExit();
i am not able to capture the username and password of the SQL server in
the command prompt..
can anyone please help me?
I am trying to call the OSQL utility from my C# console application and
i am having problems
i have the following code
In Main method
ProcessStartInfo psi = new ProcessStartInfo("osql","");
psi.RedirectStandardInput = false;
psi.RedirectStandardOutput = true;
psi.RedirectStandardError = false;
psi.CreateNoWindow = false;
psi.UseShellExecute = false;
Process pc = Process.Start(psi);
Console.WriteLine(pc.StandardOutput.ReadToEnd());
pc.WaitForExit();
i am not able to capture the username and password of the SQL server in
the command prompt..
can anyone please help me?