ranga nathan
ranga nathan

Reputation: 163

To open exe of SQL Server Management Studio

I'm creating a windows application and here I faced a scenario that I need to open SQL Server Management Studio through C# code. Is there any way to open this SQL Server Management Studio executable through code?

Note: I mean to open Sqlserver management studio.

Upvotes: 1

Views: 1510

Answers (2)

musefan
musefan

Reputation: 48415

You can launch an exe using the Process.Start method, see here

For example...

System.Diagnostics.Process.Start("IExplore.exe");//change this to path of your exe file

Upvotes: 4

Ash Burlaczenko
Ash Burlaczenko

Reputation: 25435

Use the Process class:

Process.Start("PathToExe");

Upvotes: 1

Related Questions