VISOCO Software  Home | Products | Services | Download | Order | Support | Forum | Resources | Search | About
  RSS feedRSS Feed  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  RegisterRegister   ProfileProfile    Log inLog in 
Non-shell execution of sqsh

 
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE
Author Message
Sue Greer



Joined: 07 Oct 2005
Posts: 1

PostPosted: Fri Oct 07, 2005 8:50 pm    Post subject: Non-shell execution of sqsh Reply with quote

I've just started using sqsh, and it's excellent! I've been successful running the following command:

sqsh -S <server> -U <user> -P <password> -D <database> -i <infile> -o <outfile>

with the following command in the <infile>:

select top 1 time_tag from tb_mytable order by time_tag
go

However, there's an option (-C) which supposedly allows the sql command to be given along with the other options (user, password, etc.) with the output going either to standard out or to the <outfile>. I haven't been able to get this to work. All the documentation seems to be about using sqsh as a shell. Does anyone know a simple example of how to use the -C option?

Confused
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    VISOCO Software Forum Index -> VISOCO dbExpress driver for Sybase ASE All times are GMT + 2 Hours
Page 1 of 1

 


©VISOCO Software. phpBB by phpBB Group