Solved

DTS.PackageInfo

Posted on 2002-07-23
8
250 Views
Last Modified: 2007-12-19
I am trying to access this from VB
VB6, sql server 7
and the code

dim objPck as DTS.PackageSQLServer
dim objPckInfs as DTS.PackageInfos
dim objPckInf as DTS.PackageIno
dim objDTSApp as new DTS.Application

set objPck = objDTSApp.GetPackageSQLServer("local)","sa","pwd",DTSSQLStgFlag_def
set objPckInfs = obkPck.EnumPackageInfos("", false, "")

for each objPckInf in objPckInfs
next

and also

set objPckInf = objPckInfs.next

both give the error Column does not exist when trying to set objPckInf.

objPckInfs.EOF is false

I can execute objPckInfs.next and get the column error until EOF = true (and it is iterating through the packages) in which case it will succeed - so it is probably something wrong with the cration of the PackageIno object.

Anyone else tried this?
0
Comment
Question by:nigelrivett
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 2
8 Comments
 
LVL 2

Accepted Solution

by:
PUMASOFT earned 100 total points
ID: 7171824
If you have cut and paste code into this question - could it be a misspelling of obkPck.EnumPackageInfos("", false, ""), could it be obJPck.EnumPackageInfos("", false, "")


0
 
LVL 18

Author Comment

by:nigelrivett
ID: 7171843
Sorry - I didn't paste I retyped it all (incorrectly).
0
 
LVL 18

Author Comment

by:nigelrivett
ID: 7172027
It's something wrong with my installation of sql server (or sql server in general). It works fine on v2000.
I don't even have the sp in msdb on v7 to enumerate the log recs.
I'll have a look at some other installations and see if it is just a problem with v7.
0
How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

 
LVL 2

Expert Comment

by:PUMASOFT
ID: 7172092
It may be worth loading service packs
0
 
LVL 9

Expert Comment

by:miron
ID: 7173297
did you try to look at

DTS.PackageIno
0
 
LVL 18

Author Comment

by:nigelrivett
ID: 7176623
Got service pack 3 - company uses sp2 so if doesn't work with that is pretty useless to me.
Can get the package names (which is all that I need) from msdb..sysdtspackages.
I am going to implement this as a stored procedure so don't mind accessing the system table but just wondered why EnumPackageInfos doesn't seem to work.

dts.packageinfo is a member of packageinfos which should be populated by enumpackageinfos.
0
 
LVL 18

Author Comment

by:nigelrivett
ID: 7176643
Got a feeling that this only comes with v2 of the object library. Maybe only available with sql server v2000.

On a machine with only v7 installed it seems to be missing a lot of the objects.
In partucular PackageSQLServer.
0
 
LVL 18

Author Comment

by:nigelrivett
ID: 7209930
Just to get rid of the question.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question