Execute SQL Server's DTSRun from c# -
02-02-2004
, 06:08 AM
I am trying to run a DTS package using C#. When I try to execute DTSRun it
runs hidden, I do not see the command window anywhere.
Here is my code:
System.Diagnostics.ProcessStartInfo info = new
System.Diagnostics.ProcessStartInfo();
//set up processstartinfo
info.FileName = "DTSRun";
info.Arguments = server.ExeSyntax; //This holds the syntax
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Maximized;
System.Diagnostics.Process.Start(info);
Is there anything else that I need to do?
Thanks
Dan
---
Posted using Wimdows.net NntpNews Component - Posted from SQL Servers Largest Community Website: http://www.sqlJunkies.com/newsgroups/ |