ASP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingASP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old August 8th, 2003, 04:38 PM
Farmac Farmac is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Farmac User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
DTS packages conversion from VB 6 to VB .NET

I am struggling with a couple of issues relate to the conversion from VB 6 to VB .NET. Specically it is relate Interface 'DTS.OLEDB Properties' cannot be indexes because it has no default property. I know where the problem is but I do not know how to fixed. The problem in the code is every time :

(oConnection.ConnectionProperties) shows up in the code

Here is the code:
Dim oConnection As DTS.Connection2


oConnection = goPackage.Connections.New("Microsoft.Jet.OLEDB.4.0")

oConnection.ConnectionProperties("Data Source").Value = “C:\UPLOADS.mdb"

oConnection.ConnectionProperties("Mode").Value = 1
oConnection.Name = "Connection 1"
oConnection.ID = 1
oConnection.Reusable = True
oConnection.ConnectImmediate = False
oConnection.DataSource = “C:\UPLOADS.mdb"
oConnection.ConnectionTimeout = 60
oConnection.UseTrustedConnection = False
oConnection.UseDSL = False
goPackage.Connections.Add(oConnection)


oConnection = goPackage.Connections.New("SQLOLEDB")
oConnection.ConnectionProperties("Integrated Security").Value = "SSPI"
oConnection.ConnectionProperties("Persist Security Info").Value = True
oConnection.ConnectionProperties("Initial Catalog").Value = "Test"
oConnection.ConnectionProperties("Data Source").Value = "TestServer"
oConnection.ConnectionProperties("Application Name").Value = "DTS Import/Export Wizard"
oConnection.Name = "Connection 2"
oConnection.ID = 2
oConnection.Reusable = True
oConnection.ConnectImmediate = False
oConnection.DataSource = "TestServer"
oConnection.ConnectionTimeout = 60
oConnection.Catalog = "Test"
oConnection.UseTrustedConnection = True
oConnection.UseDSL = False

goPackage.Connections.Add(oConnection)

thanks

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingASP Development > DTS packages conversion from VB 6 to VB .NET


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway