| Author |
Topic  |
|
|
pithhelmet
Posting Yak Master
183 Posts |
Posted - 10/13/2005 : 09:46:44
|
Hello everyone -
I need to write (append) to a text file the resides on the local drive.
Can this be accomplished?
If so - a code snippet would be appreciated.
thanks tony
(sybase asa 7)
|
|
|
madhivanan
Premature Yak Congratulator
India
22469 Posts |
|
|
pithhelmet
Posting Yak Master
183 Posts |
Posted - 10/13/2005 : 10:50:12
|
comes close -
but i simply need to write that the process was executed, a simple line of text to the text file...
thanks tony
|
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
madhivanan
Premature Yak Congratulator
India
22469 Posts |
|
|
pithhelmet
Posting Yak Master
183 Posts |
Posted - 10/14/2005 : 16:03:10
|
must be some kinda "inside joke"
the posted link is for MS SQL
as listed - i am running sybase but thanks for the response!!
take care tony
|
 |
|
|
Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)
USA
7007 Posts |
Posted - 10/14/2005 : 18:20:05
|
Did you notice that this forum is for Microsoft SQL Server Transact-SQL questions? If you really need help with Sybase, you should try to find a site that is focused on that.
The "inside joke" might have been a reference to the DOS ECHO command, one of many ways you might write to a file using, for example, the xp_cmdshell stored procedure. I'm not sure if xp_cmdshell is available in Sybase, so that may or may not be helpful to you. Of course, if you are not running a Windows server, a DOS shell may not be available.
Echo example from command prompt:
C:\Temp>echo Help me please! >myfile.txt C:\Temp>type myfile.txt Help me please!
C:\Temp>
quote: Originally posted by pithhelmet
must be some kinda "inside joke"
the posted link is for MS SQL
as listed - i am running sybase but thanks for the response!!
take care tony
CODO ERGO SUM |
Edited by - Michael Valentine Jones on 10/14/2005 18:34:03 |
 |
|
| |
Topic  |
|