The most basic of the configurations are:
| Command | Cause and Effect |
|---|---|
| site tabs | Toggles the tab delimiters for a get function |
| site messages | Toggles the output of SQL server messages |
| site delim | Sets the delimiter character for a put command |
| site batch | Sets the batch size for a put command |
Below are examples of the usage of each specific site command.
An example of its usage is:
ftp sybasedev.acs.ncsu.edu 9220 # connect to port 9220 on sybasedev (sqlftp) User: <your-sybase-user-id> # remember, we're a front end to sybase Password: <your-sybase-password> # so your sybase id is what you'll need here. 230 User <your-sybase-user-id> logged in. # and it tells you when you've logged in. ftp> site tabs 200 Tabs now set to offNote that this command is a toggle. When you start your ftp session, they are turned on. The first invocation of this command turns them off (as shown above). The 2nd invocation of this command will turn them back on. Further invocations will turn them off and on again, respectively.
This function allows you to turn off the SQL server messages which are returned whenever an error occurs. Be careful using this command, for you could generate a SQL server error and not know the difference. You should provide a method of checking your results instead of depending on an error code or message - because this command disables them!
This command was provided for the use of openserver calls within a select stored procedure. Like the SITE TABS command, this command is a toggle. The default is to enable SQL server messages. The first invocation will cause them to be disabled. A message is printed, showing the state of SQL server messaging.
An example of usage follows:
ftp sybasedev.acs.ncsu.edu 9220 # connect to port 9220 on sybasedev (sqlftp) User: <your-sybase-user-id> # remember, we're a front end to sybase Password: <your-sybase-password> # so your sybase id is what you'll need here. 230 User <your-sybase-user-id> logged in. # and it tells you when you've logged in. ftp> site msgs 200 SQL server messages now set to off
An example of usage follows:
ftp sybasedev.acs.ncsu.edu 9220 # connect to port 9220 on sybasedev (sqlftp) User: <your-sybase-user-id> # remember, we're a front end to sybase Password: <your-sybase-password> # so your sybase id is what you'll need here. 230 User <your-sybase-user-id> logged in. # and it tells you when you've logged in. ftp> site delim <delimiter-character> # set delimiter to some character (like :) 200 BCP Delimiter now set to ":" ftp> site delim tab # set delimiter back to the tab char. 200 BCP Delimiter now set to "<tab character>"
An example of usage follows:
ftp sybasedev.acs.ncsu.edu 9220 # connect to port 9220 on sybasedev (sqlftp) User: <your-sybase-user-id> # remember, we're a front end to sybase Password: <your-sybase-password> # so your sybase id is what you'll need here. 230 User <your-sybase-user-id> logged in. # and it tells you when you've logged in. ftp> site batch <batch-size-number> # set size to some number 200 BCP Batchsize now set to 100 ftp> site batch 10000 # for example 200 BCP Batchsize now set to 10000 ftp> site batch 1 # for example 200 BCP Batchsize now set to 1