Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
|
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 18th, 2005, 07:55 AM
Authorized User
 
Join Date: Oct 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default vb.net DTS interaction

Hi,
I have created a tds package that I wanted to be called from a web form application (ASP.NET)

Here is the code.
 Dim pack As New DTS.PackageClass
        Try
            pack.LoadFromSQLServer("mtfs012", "bgtest", "test", DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_Default , , , , "CSV_Importer", )
            pack.Connections.Item(3).ConnectionProperties.Item (1).Value = fileName
            pack.Execute()
            pack.UnInitialize()
            pack = Nothing
        Catch ex As Exception
            Response.Write("Doesn't work: " + ex.ToString())
        End Try

It doesn't return any erros, however the dts package is not executed.
It could be a permision problem?

Thanks

 
Old January 23rd, 2005, 08:54 AM
Friend of Wrox
 
Join Date: Feb 2004
Posts: 177
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Try the same with a windows forms if it runs perfectly then I could be a permission problem.



It is not how much we do,
but how much love we put in the doing.

-Mother Theresa





Similar Threads
Thread Thread Starter Forum Replies Last Post
DTS and VB.NET jelenavukicevic SQL Server DTS 0 June 14th, 2006 02:50 AM
DTS and VB.net ninel SQL Server DTS 0 August 18th, 2005 08:32 AM
dts and vb.net collie SQL Server DTS 1 November 27th, 2004 10:13 AM
converting DTS package from VB 6 to VB .NET petroleo Pro VB Databases 0 August 18th, 2003 05:01 PM
DTS packages from VB 6 to VB .NET petroleo SQL Server DTS 0 August 18th, 2003 04:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.