Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SQL DTS - "Invalid Pointer" Expand / Collapse
Author
Message
Posted Wednesday, March 30, 2005 6:34 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, July 25, 2005 1:09 PM
Points: 1, Visits: 1

Hi All,

I have two SQL servers, one is running SQLServer 7.0 (7.00.842) and the other is running SQLServer 2000 (8.00.760).  I've linked the servers (on the SQL 7.0 box).

I need to copy some data from the 7.0 box to the 2000 box on a nightly basis.  I wrote the query, and it works fine in QA when connected to the 7.0 box.  Thinking everything was going ok, I built a DTS package with the same sql code on the same server.

Strangely, when I run the DTS package I receive an "Invalid Pointer" error.  And of course, when I schedule the job to run, it also fails.

Any idea why this is happening?  The only information on this "Invalid Pointer" error I can find refers to an older service pack, which is not the problem in this case.

Any pointers would be much appreciated.  Thanks!

Post #171035
Posted Friday, April 1, 2005 12:16 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, April 1, 2005 12:12 PM
Points: 1, Visits: 1

Hello,

 

  I was getting "Invalid Pointer" when trying to export results of a query (from a stored procedure) to an Excel spreadsheet.

The problem was that I had one line in the stored procedure that inserted on record in another table. Then I had set Nocount on. As a result if you ran my qurery Analyzer you would get a message in the message window.

It truns out that DTS packages do not like messages. Make sure you have Set NOCOUNT ON and SET ANSI_WARNINGS OFF.

 

It took me half a day to figure this out!

Shab




Post #171614
Posted Friday, July 7, 2006 7:14 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, August 10, 2006 7:43 AM
Points: 1, Visits: 1

THANKS!

"Make sure you have Set NOCOUNT ON and SET ANSI_WARNINGS OFF."

After including these statements as first two rows in my stored procedure, i was finally able to access two different databases (select from DB1, insert into DB2) in the stored procedure, when called from DTS.

(SQL Server 2000)

martin

Post #292797
Posted Thursday, August 17, 2006 11:46 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, October 2, 2013 8:20 AM
Points: 1, Visits: 33
Humm, I am running into the same problem except I am not allowed to set the ansi warnings off... I am hitting a linked table and i dont think this is allowed:

Heterogeneous queries require the ANSI_NULLS and ANSI_WARNINGS options to be set for the connection. This ensures consistent query semantics. Enable these options and then reissue your query.

Bummer :/
Post #302419
Posted Friday, February 2, 2007 3:48 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, February 2, 2007 3:36 AM
Points: 3, Visits: 1
strange.. when trying to get round my invalid pointer problem from a dts package i deisgned, it said it didnt like the set commands.. but when using the build query in the transform data properties in the dts manager i also found it didnt like the use command.. got rid of that and it was fine!!! If it dont work in the preview here it wont work when running the package. This thing gives better error messages though.
Post #341953
Posted Thursday, December 18, 2008 2:36 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, February 4, 2013 12:32 PM
Points: 2, Visits: 16
SWEET! :D Thanks for the post! I was having the same issue.
Post #622478
Posted Monday, December 29, 2008 1:36 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, April 5, 2011 2:09 PM
Points: 6, Visits: 54
Thanks Much- saved me a few hours as well.
Post #626823
Posted Tuesday, December 30, 2008 10:24 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Thursday, September 15, 2011 7:20 AM
Points: 21, Visits: 24
Thanks for this post...

It was the USE command for me.
Post #627468
Posted Thursday, November 12, 2009 9:22 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, April 22, 2013 2:02 PM
Points: 28, Visits: 55
This is exactly why I love this site. I was getting the same error from copying a query from QA to my DTS package. Placed these two commands at the beginning of my DTS query:
SET NOCOUNT ON
SET ANSI_WARNINGS OFF

and viola' it works!

Thanks for the solution.

Clarence
Post #817923
Posted Monday, February 8, 2010 2:03 AM


Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Wednesday, August 7, 2013 9:20 PM
Points: 13, Visits: 80
thanks so much for the info people ... i had spent hours rectifying this error...
Post #861485
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse