dbTalk Databases Forums  

Copying data to a text file

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Copying data to a text file in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
accyboy1981
 
Posts: n/a

Default Copying data to a text file - 07-03-2006 , 06:54 AM






Hi,

I'm fairly new to DTS and am trying to copy the results of a query to a
text file but get the following error:

Error creating datafile mapping: The volume for a file has been
externally altered so that the opened file is no longer valid.

I'm using sqlserver 7 and have created a connection to my database and
my text file (located on the root of c). The properties of the text
file connection is fixed fields and first row has column names is
checked.

I've created a data driven query task with an sql statemnt as the
source and the text file as the destination. The transformation is an
active script which is created automatically and the query is left
empty. Does this seem correct?

Any help would be much appreciated

Thanks

Simon


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Copying data to a text file - 07-04-2006 , 01:18 PM






Hello accyboy1981,


When I have seen this error

The volume for a file has been externally altered so that the opened file
is no longer valid

I usually have a look at the file size. I have seen this error thrown when
the file size = 0 bytes


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
Hi,

I'm fairly new to DTS and am trying to copy the results of a query to
a text file but get the following error:

Error creating datafile mapping: The volume for a file has been
externally altered so that the opened file is no longer valid.

I'm using sqlserver 7 and have created a connection to my database and
my text file (located on the root of c). The properties of the text
file connection is fixed fields and first row has column names is
checked.

I've created a data driven query task with an sql statemnt as the
source and the text file as the destination. The transformation is an
active script which is created automatically and the query is left
empty. Does this seem correct?

Any help would be much appreciated

Thanks

Simon




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.