Return to site

Vb6 Missing Microsoft Dts Package Object Library

broken image


Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success, Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure ; #endregion /. The execution engine calls this method when the task executes. To access the object model, use the Dts property. Connections, variables, events, and logging features are available as members of the.

  1. Vb6 Missing Microsoft Dts Package Object Library Dll
  2. Microsoft Dts Package Object Library
  3. Vb6 Missing Microsoft Dts Package Object Library Download
  4. Vb6 Missing Microsoft Dts Package Object Library Download

Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

All Forums
Development Tools
ASP.NET
VB.Net Running a DTS Package
  • May 15, 2006 macro and the macro will call DTS. Question: Since I am a developer with SQL Server loaded as well as Microsoft Excel, I only had to select References and check the 'Microsoft DTSPackage Object Library'. When I deploy this spreadsheet to the clients, they won't have SQL Server loaded. They might have just the Client connectivity.
  • I Had a VB Project in my system which was not done by me! But when i tried to Run that it gave me a message! Compile Error: Can't Find Project Or Library! Immediately after that, the References Box opens automatically showing MISSING:Microsoft DTSPackage Objects Library alomg with all the other references selected!!!

Author Topic
smithygreg
Starting Member

37 Posts

Posted - 2004-10-29 : 14:17:01
Hi everyone..I am new to both SQL Server AND VB.net..
Here's my problem.
I created a DTS package basically to just import a CSV file into a table in my database. I want to be able to run this package from my VB.net front end on a client machine. I used some of the sample code that comes with SQL Server and I kept getting errors saying the different DTS Types that I was trying to Declare were not defined.
For Example
Public goPackageOld As New DTS.Package
Public goPackage As DTS.Package2
Would give me 'Type DTS.Package is not defined'
and 'Type DTS.Package2 is not defined'
Well, like I said, I am new at this.I have experience with VBA and VB6, but I am a bit lost here. Are there references I need to load or some include statements missing?
Any help on this problem would be appreciated..
Also, Does anyone know of a good resource for information? I mean, besides these forums.
THANKS!!!
Greg
smithygreg
Starting Member

Waves ssl 4000 plugin bundle free download.

37 Posts

Posted - 2004-10-29 : 19:51:03
Well, I figured it out..Thanks anyway..
I am still interested in any beginner material, books you could recommend
brendalisalowe
Constraint Violating Yak Guru

269 Posts

Star ccm license crack. STAR-CCM+ then goes to our servers across your internet connection to check this key, and once validated it releases the license of STAR-CCM+ and the simulation opens in your window. A more in depth video in the portal can be found in the knowledge base under the title ' How to set up and use Power on Demand licensing '. Star Ccm License Crack Download; Siemens Star CCM+ 13.04.010 (x64) 2.12 GB. Information: STAR-CCM + is one of the most modern, in comparison with competitors, software complex, designed to solve the problems of mechanics of continuous media.

Posted - 2004-11-16 : 12:50:37
You really figured it out? I have been trying forever. Want to help me out a little bit? This is what I have posted, just to give you an idea of what I am doing.
http://www.vbforums.com/showthread.php?s=&threadid=308100&perpage=40&pagenumber=1
Thanks for any help!
Brenda
If it weren't for you guys, where would I be?
AlDragon
Starting Member

12 Posts

Posted - 2004-12-06 : 23:35:35
Add reference Microsoft DTSPackage Object Library under the COM tab.
This can also be done in VB6
This will get you started:
Dim opkg As DTS.PackageClass
opkg = New DTS.PackageClass()
'This call will load the dts package from the sql server
opkg.LoadFromSQLServer(Add paramter variables as needed)
Al Franzini

Subscribe to SQLTeam.com

Resources

Posted Feb 10, 2003

By DatabaseJournal.com Staff

James Horne

Overview

Data Transformation Services (DTS) remain an important toolin the arsenal of database administrators and web designers that need to movedata between data repositories. These repositories can include SQL Server 2000,a variety of other databases as well as text files, and Excel files. You'realso being compelled to move towards the Visual Studio .NET framework as youmove forward with software development based on the Microsoft platform. Therefore,you will invariably run into the problems outlined below.

With ten minutes of cleanup, you can use a DTS packagegenerated by SQL Server 2000 within the Visual Studio .NET framework. You'llhave all the benefits of running in the Visual Studio .NET framework, and beable to programmatically control the behavior of the DTS package. This articlewill get you there quickly while navigating a path that isn't always straightforward.

There are two important reasons why you'll want to do this.

  • The .NET environment provides the common language runtime (CLR)with improved memory management. Utilizing the CLR is critical in a web-basedapplication that needs to run for multiple days without running out of memory.
  • If you develop your web application against a development SQLServer and then run it against a production SQL Server, you'll find itcumbersome to configure the data source/destination of a DTS package saved asmeta data or in structured storage. However, you can easily configure the dataconnections in your saved VB package to reflect the various stages of yourrelease process.

The rest of this article explains exactly how to do thisupgrade, and then how to apply some of the common edits required to bring thecode completely up to standard. Microsoft has also provided documentation onthe changes to the VisualBasic language. You can also reference VisualBasic .NET upgrade guide. or UpgradingApplications Created in Previous Versions of Visual Basic for furtherinformation.

Introduction

Library

Microsoft has built an upgrade tool into the .NETenvironment to migrate old VB code into the CLR of the .NET framework. You willneed this tool since SQL Server 2000 service pack 2 still generates VB codetargeted to Visual Basic 6.0. This code makes assumptions that are not valid inthe .NET framework

As a test case,I created a very simple DTS package that reads two columns from one text fileand writes the exact same columns into another text file using a Transform DataTask. The compiler errors in this article are typical. You may get differentor additional errors depending on how you've set up your package.

Upgrade Steps:

  1. UseSQL Enterprise Manager to edit your DTS Package and make sure that it works. Ipersonally like to get things working as well as possible in this environmentbecause it's harder to manually make changes to the saved VB package.
  2. Savethe package as a VB program dtsPackage.bas. (You can use any name.)
  3. Createa VB .exe project in Visual Basic 6.0.
  4. Referenceinto the new project 'Microsoft DTS Custom Tasks Object Library,' 'Microsoft DTSDataPumpScripting Object Library,' and 'Microsoft DTSPackage Object Library.'
  5. IncludedtsPackage.bas in the new project.
  6. Compileand run the project. This will give you confidence that the package will reallywork in the Visual Basic 6.0 environment.
  7. Save/closethe project.
  8. LaunchVisual Studio .NET.
  9. Openthe 6.0 project from Visual Studio .NET. This will automatically invoke theupgrade wizard. The upgrade wizard will do the following:
    • Create a new project folder and copy all the relevant VisualStudio 6.0 files into this folder.
    • Create a new project and solution file.
    • Create Interop dll's for each COM library that was referenced bythe Visual Studio 6.0 project.
    • Upgrade dtsPackage.bas as well as any other VB code in theproject. The upgraded code has hyperlinks to guide you to more descriptivedocumentation about the nature of the problems found.
    • Create an upgrade report that summarizes what happened in theupgrade (_UpgradeReport.htm).
  10. Fix the remaining errors asoutlined below.
  11. Compile/run the projectwithin Visual Studio .NET.

Note: Creation of Interop DLL's

All the referenced DTS dlls shipped with SQL Server 2000 runas COM libraries. To interface these libraries into the Visual Studio .NETenvironment, wrapper dll's are created which provide the necessary metadatainformation required by the common language runtime to interface with the DTSCOM libraries. (Interop.DTSCustTasks.dll, Interop.DTSPump.dll, andInterop.DTS.dll) The good news is that these wrappers are provided for free bythe upgrade tool. MoreInfo

Vb6 Missing Microsoft Dts Package Object Library Dll





Microsoft Dts Package Object Library

Package

Vb6 Missing Microsoft Dts Package Object Library Download

Latest Forum Threads
MS SQL Forum
TopicByRepliesUpdated
SQL 2005: SSIS: Error using SQL Server credentialspoverty3August 17th, 07:43 AM
Need help changing table contentsnkawtg1August 17th, 03:02 AM
SQL Server Memory confifurationbhosalenarayan2August 14th, 05:33 AM
SQL Server – Primary Key and a Unique Keykatty.jonh2July 25th, 10:36 AM
Vb6 missing microsoft dts package object library free

Microsoft has built an upgrade tool into the .NETenvironment to migrate old VB code into the CLR of the .NET framework. You willneed this tool since SQL Server 2000 service pack 2 still generates VB codetargeted to Visual Basic 6.0. This code makes assumptions that are not valid inthe .NET framework

As a test case,I created a very simple DTS package that reads two columns from one text fileand writes the exact same columns into another text file using a Transform DataTask. The compiler errors in this article are typical. You may get differentor additional errors depending on how you've set up your package.

Upgrade Steps:

  1. UseSQL Enterprise Manager to edit your DTS Package and make sure that it works. Ipersonally like to get things working as well as possible in this environmentbecause it's harder to manually make changes to the saved VB package.
  2. Savethe package as a VB program dtsPackage.bas. (You can use any name.)
  3. Createa VB .exe project in Visual Basic 6.0.
  4. Referenceinto the new project 'Microsoft DTS Custom Tasks Object Library,' 'Microsoft DTSDataPumpScripting Object Library,' and 'Microsoft DTSPackage Object Library.'
  5. IncludedtsPackage.bas in the new project.
  6. Compileand run the project. This will give you confidence that the package will reallywork in the Visual Basic 6.0 environment.
  7. Save/closethe project.
  8. LaunchVisual Studio .NET.
  9. Openthe 6.0 project from Visual Studio .NET. This will automatically invoke theupgrade wizard. The upgrade wizard will do the following:
    • Create a new project folder and copy all the relevant VisualStudio 6.0 files into this folder.
    • Create a new project and solution file.
    • Create Interop dll's for each COM library that was referenced bythe Visual Studio 6.0 project.
    • Upgrade dtsPackage.bas as well as any other VB code in theproject. The upgraded code has hyperlinks to guide you to more descriptivedocumentation about the nature of the problems found.
    • Create an upgrade report that summarizes what happened in theupgrade (_UpgradeReport.htm).
  10. Fix the remaining errors asoutlined below.
  11. Compile/run the projectwithin Visual Studio .NET.

Note: Creation of Interop DLL's

All the referenced DTS dlls shipped with SQL Server 2000 runas COM libraries. To interface these libraries into the Visual Studio .NETenvironment, wrapper dll's are created which provide the necessary metadatainformation required by the common language runtime to interface with the DTSCOM libraries. (Interop.DTSCustTasks.dll, Interop.DTSPump.dll, andInterop.DTS.dll) The good news is that these wrappers are provided for free bythe upgrade tool. MoreInfo

Vb6 Missing Microsoft Dts Package Object Library Dll





Microsoft Dts Package Object Library

Vb6 Missing Microsoft Dts Package Object Library Download

Latest Forum Threads
MS SQL Forum
TopicByRepliesUpdated
SQL 2005: SSIS: Error using SQL Server credentialspoverty3August 17th, 07:43 AM
Need help changing table contentsnkawtg1August 17th, 03:02 AM
SQL Server Memory confifurationbhosalenarayan2August 14th, 05:33 AM
SQL Server – Primary Key and a Unique Keykatty.jonh2July 25th, 10:36 AM

Vb6 Missing Microsoft Dts Package Object Library Download






broken image