Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting "Set echo off" in SQL output script from SQLTalk

Status
Not open for further replies.

jimgrid

IS-IT--Management
Mar 25, 2004
1
0
0
US
Ok, this one has me a bit confused, I have a very basic script that I run from the SQLTALK BAT mode to export X number of records to a text file ( stored by the system date)...in my file, I have the normal stuff like - SET HEADING OFF, SET ECHO OFF....When the script executes, the output file has "SET ECHO OFF" In it. Any ideas why this might be happening?

One more thing, how do you write out "field1","field2" - similar to a comma delimited file. I can do this fine in Oracle or SQL Server but SQLBase and SQLTALK - has me by the throat...

Thanks and appreciate any feedback..
Jim
 
okay...only a solution to your second problem ;-)

try it like in this simple example:

SELECT
FIELD1 ||';'|| FIELD2 ||';'|| FIELD3
FROM
TESTTABLE

now you get your result set separated by ';'
I hope this will solve your problem ;-)
 
hi jimgrid,

for Your problem I don't have a solution but I would have an other question: How should be the Call to the SQLTalk in the bat-File ? I could not find this call in any documentation.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top