Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
| Search | Today's Posts | Mark Forums Read
SQL Server DTS Discussion specific to Data Transformation Service with SQL Server. General SQL Server discussions should use the general SQL Server forum. Readers of the book Professional SQL Server 2000 DTS with questions specific to that book should post in that book forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server DTS 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 April 28th, 2005, 11:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Package Problem (ActiveX)

Hello,

I have a DTS package that has an ActiveX task. This task works with access to create databases and push out data to them. The problem is, I'm getting an error trying to establish a connection to the SQL Server database as such:

set objConn = Server.CreateObject("ADODB.Connection")

I get this as a resolution:

http://support.microsoft.com/default...b;en-us;201740

But I wasn't sure since I'm not dealing with ASP. I'm trying to run the task as myself manually, not scheduled also, for testing purposes. Any ideas?

Thanks.


Brian
__________________
Brian
 
Old May 17th, 2005, 12:55 AM
Friend of Wrox
 
Join Date: Nov 2003
Location: Lehigh Acres, FL, USA.
Posts: 625
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to jemacc
Default

Where are you executing the package from?

Jaime E. Maccou
 
Old May 17th, 2005, 07:26 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

I was running it manually for testing purposes.

Brian
 
Old May 20th, 2005, 03:41 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Server.CreateObject is only valid in ASP. Just omit the Server. part.
Code:
set objConn = CreateObject("ADODB.Connection")
--

Joe (Microsoft MVP - XML)
 
Old May 31st, 2005, 08:35 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

It actually was CreateObject, not Server.CreateObject. I got it wrong, sorry about that. So it is that, but I'm still having the problem...

Brian




Similar Threads
Thread Thread Starter Forum Replies Last Post
Package Body Problem mindScape Oracle 0 March 21st, 2007 12:43 PM
CDONTS and ActiveX in a DTS Package Hal Levy SQL Server 2000 0 May 18th, 2005 01:25 PM
Package problem dglnz JSP Basics 9 April 11th, 2005 03:35 AM
Package Deployment Problem bveerendrakumar Pro VB 6 8 March 16th, 2005 05:05 AM





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