Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

DTS export from SQL query to csv file fails with invalid p..

 
   Database Help (Home) -> DTS RSS
Next:  SQL 2000 to Oracle Transfer  
Author Message
Ed Ireland

External


Since: Mar 31, 2004
Posts: 2



(Msg. 1) Posted: Wed Mar 31, 2004 4:59 pm
Post subject: DTS export from SQL query to csv file fails with invalid poi
Archived from groups: microsoft>public>sqlserver>dts (more info?)

I'm pretty short in the experience area here so this is
probably something pretty easy. Any help would go a long
way!

I'm trying to use DTS to create a .CSV/.TXT file that
stores the results of a simple query.

The query runs OK by itself, but the DTS action fails
with "Invalid Pointer" when it executes. The task goes as
far as creating a file where it is supposed to, but the
file is 0 bytes in size.

The Step Name is "Copy Data from Results to
C:\Temp\sample.csv Step"

This is running under SQL2000 on Server 2000 OS.

Thank you in advance.

Ed Ireland

 >> Stay informed about: DTS export from SQL query to csv file fails with invalid p.. 
Back to top
Login to vote
Allan Mitchell

External


Since: Oct 01, 2003
Posts: 1481



(Msg. 2) Posted: Thu Apr 01, 2004 11:22 am
Post subject: Re: DTS export from SQL query to csv file fails with invalid [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

And what is the query.

I have seen this error mentioned when there is a USE statement as the first
part of the query.

What about reregistering DTSFFile.dll

What SP of SQL Server?

--

----------------------------

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
<a rel="nofollow" style='text-decoration: none;' href="http://www.SQLDTS.com" target="_blank">www.SQLDTS.com</a> - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - <a rel="nofollow" style='text-decoration: none;' href="http://www.sqlpass.org" target="_blank">http://www.sqlpass.org</a>


"Ed Ireland" wrote in message

 > I'm pretty short in the experience area here so this is
 > probably something pretty easy. Any help would go a long
 > way!
 >
 > I'm trying to use DTS to create a .CSV/.TXT file that
 > stores the results of a simple query.
 >
 > The query runs OK by itself, but the DTS action fails
 > with "Invalid Pointer" when it executes. The task goes as
 > far as creating a file where it is supposed to, but the
 > file is 0 bytes in size.
 >
 > The Step Name is "Copy Data from Results to
 > C:\Temp\sample.csv Step"
 >
 > This is running under SQL2000 on Server 2000 OS.
 >
 > Thank you in advance.
 >
 > Ed Ireland

 >> Stay informed about: DTS export from SQL query to csv file fails with invalid p.. 
Back to top
Login to vote
Ed Ireland

External


Since: Mar 31, 2004
Posts: 2



(Msg. 3) Posted: Fri Apr 02, 2004 10:38 am
Post subject: Re: DTS export from SQL query to csv file fails with invalid [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Following is the simple query.

use MP2Samp
select wonum, left(closedate,11)as closedate, equip.eqnum,
description from
woeqlist left outer join equip on woeqlist.eqnum =
equip.eqnum
order by wonum asc

You were correct regarding the USE statement--thank you.
Once "USE MP2Samp" was removed, the DTS ran under the
immediate execution option. For some reason though, the
DTS is not running against the schedule that I assigned of
every 8 hours.

The service pack is 8.00.534 Database Components Service
Pack 2 (SP2)


 >-----Original Message-----
 >And what is the query.
 >
 >I have seen this error mentioned when there is a USE
statement as the first
 >part of the query.
 >
 >What about reregistering DTSFFile.dll
 >
 >What SP of SQL Server?
 >
 >--
 >
 >----------------------------
 >
 >Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
 >www.SQLDTS.com - The site for all your DTS needs.
 >I support PASS - the definitive, global community
<font color=purple> >for SQL Server professionals - <a rel="nofollow" style='text-decoration: none;' href="http://www.sqlpass.org</font" target="_blank">http://www.sqlpass.org</font</a>>
 >
 >

in message

  >> I'm pretty short in the experience area here so this is
  >> probably something pretty easy. Any help would go a
long
  >> way!
  >>
  >> I'm trying to use DTS to create a .CSV/.TXT file that
  >> stores the results of a simple query.
  >>
  >> The query runs OK by itself, but the DTS action fails
  >> with "Invalid Pointer" when it executes. The task goes
as
  >> far as creating a file where it is supposed to, but the
  >> file is 0 bytes in size.
  >>
  >> The Step Name is "Copy Data from Results to
  >> C:\Temp\sample.csv Step"
  >>
  >> This is running under SQL2000 on Server 2000 OS.
  >>
  >> Thank you in advance.
  >>
  >> Ed Ireland
 >
 >
 >.
 >
 >> Stay informed about: DTS export from SQL query to csv file fails with invalid p.. 
Back to top
Login to vote
MSExpert

External


Since: Jan 29, 2010
Posts: 1



(Msg. 4) Posted: Fri Jan 29, 2010 2:25 pm
Post subject: RE: DTS export from SQL query to csv file fails with invalid pointer [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ed Ireland is a complete and total ass. He has no clue whatsoever. Don't attempt to help him, you are just wasting your time!







From http://www.developmentnow.com/g/103_2004_3_0_0_395916/DTS-export-from-...-query-

Posted via DevelopmentNow.com Groups
http://www.developmentnow.com/g/
 >> Stay informed about: DTS export from SQL query to csv file fails with invalid p.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
connection to excel file fails - Hi eb Seems like some funny credentials problem(?): I am trying to connect and load an excel sheet in to a sql server table. Executing the dts package directly works just fine but running the same package as scheduled job fails. The error message says -....

Importing Query From .sql file? - Hi can u tell me how to fetch query from .sql file while working in DTS 2000? actually, I need to fetch query from . sql file(on local drive) and then want to execute this query on a sql database to export that sql data to a ..txt file using dts..

Invalid Authorization Specification - I'm getting "Invalid Authorization Specification" when i try to run a DTS package from excel. I get an error on this line.......I have been leaving "sa" and "Password" blank since we use windows authentication.........I d...

invalid procedure call or argument DTSSource - I'm using the vbscript below to import values into SQL Server. If a column is null then I want another value used from a different column. But I keep gettin the error "invalid procedure call or argument DTSSource" Any thoughts. Here is the c...

New Schedule DTSX Job Fails to execute - I have been having a hell of a time with running a dtsx package on my SQL server 2005. I designed the package on a development machine and through Visual studio it runs fine. I then imported the package to my SQL server Integration services. if I right..
   Database Help (Home) -> DTS All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]