473,405 Members | 2,354 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,405 software developers and data experts.

parming a varianble to a DTSX

VB.net 2005 * SQL Server 2005

im running a test applicaton to see if this can be done . My DTSX has a
string variable called filename and i want to parm that file name in from my
application.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim pkgLocation As String = ""
Dim App As New Application
Dim pkg As New Package
Dim result As DTSExecResult
pkgLocation = "\\Sql1\2007_DTS\FTPSLAVE.dtsx"
Try
pkg = App.LoadPackage(pkgLocation, False, ExecEvent)
pkg.Execute()
MsgBox("DTS Executed - result - " & result.ToString)
Catch ex As Exception
MsgBox(" Execution error " & ex.Message)
End Try
End Sub

any ideas ???
Sep 5 '07 #1
0 959

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Peter Newman | last post by:
Im looking for a working modal / example on how to execute a business object package on a 2005 server from vb.net ( 2003) , parming in parameters much the same as vb6 and SQL2000 DTS
0
by: Hennie7863 | last post by:
Hi, I'm not quit sure what the problem is but hereby a description about the symptoms i've seen: Situation I have a stored procedure Start_DTSX which executes DTEXEC in a xp_cmdshell. When i...
0
by: Rodrigo Bellusci | last post by:
I´m using the following code to execute a SSIS package: string pkgLocation; Package pkg; Microsoft.SqlServer.Dts.Runtime.Application app; DTSExecResult pkgResults; pkgLocation =...
1
by: helloitsme | last post by:
Hello! I have a DTS package that copies data from a flat file source to a OLEDB destination ( a table in SQL server database). The package executes fine when the .dtsx is executed (by double...
3
by: =?Utf-8?B?TWljaGFlbA==?= | last post by:
Hi, I need to call an SSIS package from ASP.NET 2.0 web page. First I triy to call it directly from the asp.net page, as the following: Dim app As New Application Dim pack As Package =...
0
by: =?Utf-8?B?UGV0ZXIgTmV3bWFu?= | last post by:
im in need of help. Workstation - win xp pro. FTP & SQL servers Win2003 , devolopment in VS2005 ( vb.net ) , SQL 2005 I have generated an application which is fired from an event on a FTP...
2
by: Ganesh Kumar | last post by:
Hi I have created a DTS package in SQL 2005 which will pull the data from oracle and pushes into SQLServer. I am able to execute the package from business intelligence wizard. Is there anyway...
0
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a project that I built in vs 2005 that moves data and has a few connections in it, (like the old dts packages). I was just wondering how to move this to another computer, can you just...
0
by: Don Juan | last post by:
Hello all I create a package in SSIS, this works fine (is just a file that update and isert records). But when I add this in my vb.nat project this fails, the resultcode is 0 (successfuly) but...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.