Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server DTS
|
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 June 16th, 2004, 07:26 AM
Registered User
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default Appending to a TextFile


I am trying to append to a text file, using the FileSystemObject.

When I use the code:
objFSO.OpenTextFile("c:\text.txt", ForAppending)

I get an error. If I do not put the "ForAppending" on the end, I get bad file mode.

Am I using the correct syntax?

Thank you,
Jennifer
 
Old June 16th, 2004, 07:40 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

In what environment are you using this? Did you declare the constant ForAppending somewhere?

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old June 16th, 2004, 08:28 AM
Registered User
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default


I did not declare a constant for the "ForAppending".

What is the constant?

Thank you,
Jennifer

 
Old June 16th, 2004, 08:45 AM
Registered User
 
Join Date: Nov 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thank you for the response. I found the constant for this is 8.

Thank you,
Jennifer






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to load multiple textfile royaloba Pro VB 6 2 October 27th, 2006 12:18 AM
multiple textfiles to one textfile for import Marleen Access VBA 5 September 28th, 2006 09:03 AM
Querying a textfile in QA daniel SQL Server 2000 10 February 1st, 2006 01:51 AM
Append a textfile information to a variable Helmut Classic ASP Professional 1 July 16th, 2003 08:23 PM
Importing a TextFile, best way ioates SQL Server 2000 1 June 27th, 2003 07:24 AM





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