Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / June 2006

Tip: Looking for answers? Try searching our database.

firing a dts package's execution

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
someone - 20 Jun 2006 17:58 GMT
Hi all,
  I am using Sql Server 2000. I need to create a very simple app which when
clicked would fire the execution of a dts package on the sql server. The app
itself would sit on the client machine. Is this possible? If so, how?

Thanks in advance.
gorf - 20 Jun 2006 18:04 GMT
> Hi all,
>    I am using Sql Server 2000. I need to create a very simple app which when
> clicked would fire the execution of a dts package on the sql server. The app
> itself would sit on the client machine. Is this possible? If so, how?

I tried this a month back.  There are a number of solutions but I found
that there were alot of security/permissions issues that prevented me
from triggering a DTS package from an application.  The most promising
solution I thought was the triggering of a job from within a stored
procedure using sp_start_job.  I finally got the permissions worked out
to execute the job but then the job wouldn't execute the DTS.

Ultimately I gave up and went to a scheduled job solution that ran every
10 minutes.  I'm sure it's possible to trigger a DTS but my
organization's security policies (which are there for a reason) made
that difficult to accomplish.

Anyway, google for sp_start_job, you should get alot of information that
will help you out.

--
gorf
Tracy McKibben - 20 Jun 2006 18:12 GMT
> Hi all,
>    I am using Sql Server 2000. I need to create a very simple app which when
> clicked would fire the execution of a dts package on the sql server. The app
> itself would sit on the client machine. Is this possible? If so, how?
>
> Thanks in advance.

Some combination of xp_cmdshell and DTSRUN would probably do it.  Both
are documented in BOL.
Damien - 21 Jun 2006 06:27 GMT
> Hi all,
>    I am using Sql Server 2000. I need to create a very simple app which when
> clicked would fire the execution of a dts package on the sql server. The app
> itself would sit on the client machine. Is this possible? If so, how?
>
> Thanks in advance.

I've just added something to my VB.Net app something that should also
work from VB 6, and anything that can use COM. Add a reference to the
Microsoft DTSPackage Object Library. Then it's a couple of lines like:

         Dim pkg As New DTS.Package2
         pkg.LoadFromSQLServer("SERVERNAME", "", "",
DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedConnection, "",
"", "", "PACKAGENAME", "")
         AddHandler pkg.OnError, AddressOf RecordExtractError
         pkg.Execute()

If you need more/something else, it might help if you tell us what the
app is being developed in (incidentally I think the above can also be
written as a script file)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.