Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp.net and dts

Status
Not open for further replies.

rac55

Programmer
Jul 1, 2003
62
AU
Hi

Does anyone know how to invoke a dts from asp.net web page? My code is;

Sub BtnUpload_click(Sender As Object, E As EventArgs)

Dim opkg As New DTS.Package
Dim sServer As String
Dim sPackageName As String, sMessage As String
Dim sUser As String
Dim lErr As Long, sSource As String, sDesc As String

sServer = "Local"
sPackageName = "DTS_ExamResults"
sMessage += theUser
'Load(Package)
oPKG.LoadFromSQLServer(sServer, ,
DTSSQLServerStorageFlags.DTSSQLStgFlag_UseTrustedConnection, , , ,
sPackageName)
opkg.Execute
opkg.UnInitialize()

End Sub

Its keeps returning Type 'DTS.Package' is not defined, I have tried importing the dts namespace, but again an error occurs.

Any help would be greatly appreciated

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top