03-11-2008
From Solaris UNIX to MS SQL Server
Hello,
my problem is, that I want to send an SQL-Statement via ksh-Shell to an MS-SQL-Database based on SQL Server 2005. I want to receive a file, which can be used for further actions on UNIX (Sun OS 5.9). ODBCUnix and JDBC and FreeTDS are not allowed. Does anybody have a suggestion?
Br,
Misha
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
let me save everyone the pain that it caused me.
This is all free. And make sure it is in this order
1) make sure you have the latest version of perl installed
2) make sure you have NET:aemon installed
3) make sure you have RPC::PlServer & PlClient (the bundle has both)
4) make sure... (3 Replies)
Discussion started by: Optimus_P
3 Replies
2. UNIX for Dummies Questions & Answers
Hi GURUs,
I have following queries:
1) If its possible to configure Microsoft SQL Server database on a UNIX machine, if yes, can any body pls point me to the guide to acheive the same.
2) I know Oracle runs perfectly on UNIX based machines, can any body point me to the guide to achieve the... (6 Replies)
Discussion started by: patras
6 Replies
3. Shell Programming and Scripting
Hi,
I need to make SQL Server procedure call (exec <proc name>)from unix shell script. First of all I would like to know if it is possible. I know we can do it from Oracle but not sure about SQL Server.
Version:
SunOS 5.8
SQL 8.0
I have made the below entry in the interface file.
NSXNA267
... (0 Replies)
Discussion started by: sspreethi
0 Replies
4. Shell Programming and Scripting
I am trying to connect SQL SERVER VIA JDCB. Following is something I tried and will appreciate any help what I am doing wrong
Here's what I did, I tried several variations, but I keep getting this error:
Exception in thread "main" java.sql.SQLException: Unable to connect. Invalid URL
I... (1 Reply)
Discussion started by: cqldba
1 Replies
5. Solaris
After dumping data from an Oracle database running on Solaris into a flat file, we need to run bcp and isql for MS SQL Server on the same Solaris box. Does Microsoft provide some tools that run on Unix?
Thanks for your assistance. (2 Replies)
Discussion started by: tomstone_98
2 Replies
6. Shell Programming and Scripting
Hello All
I am getting a problem.What i want to do is to connect unix(korn shell) and sql server 2005. But it is not happening.
The task is to schedule a job using crown or something else that connect with sql server 2005 and run the query and save the result in a text file. (5 Replies)
Discussion started by: parthmittal2007
5 Replies
7. Shell Programming and Scripting
Hi All,
I am accessing Unix through putty (i.e. unix is installed on other server and i am accessing it remotely through putty). I am having SQL Server 2008 installed on my computer.
Now i want to access sql server via. unix.
Could some one please help me in this!!!
Thanks (2 Replies)
Discussion started by: preetpalkapoor
2 Replies
8. Windows & DOS: Issues & Discussions
New to using sql server and unix, but say I have here /home/foo/file.txt
Can I use some kind of process to push that .txt into a sql server?
Or
Is there a sql server utility that can be configured to find a unix box and go into /home/foo/file.txt and slurp it up:)
Or is there any PC and... (5 Replies)
Discussion started by: sas
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
i have to perform a connection from unix to sql server database, using TCP protocol.
I have all connection parameters (user,pwd,server_name,port,db_name).
How can i perform this connection, by unix console ?
is it available a command similar to this one (for oracle):
sqlplus... (1 Reply)
Discussion started by: nash83
1 Replies
10. Shell Programming and Scripting
I would like to invoke a procedure in SQL server which will return some results of a select query from UNIX script. I would like to invoke this procedure and load the data into a flat file in UNIX.
Can you please help? I am not able to find any sample programs in Internet. (1 Reply)
Discussion started by: madhu.sushmitha
1 Replies
fisql(1) FreeTDS Utilities fisql(1)
NAME
fisql - interactive SQL shell
SYNOPSIS
fisql [-e] [-F] [-g] [-p] [-n] [-v] [-X] [-Y]
[-a display_charset] [-c cmdend]
[-D database] [-E editor]
[-h headers] [-H hostname] [-i inputfile]
[-I interfaces_file] [-J client_charset]
[-l login_timeout] [-m errorlevel]
[-o outputfile]
[-P password] [-s colseparator] [-S server]
[-t timeout] [-U username] [-w width]
[-y sybase_dir] [-z language]
DESCRIPTION
fisql is very similar to the "isql" utility programs distributed by Sybase and Microsoft. Like them, fisql uses the command "go" on a line
by itself as a separator between batches.
OPTIONS
-a display_charset
The client charset name. Not implemented.
-c cmdend
Command terminator, defaults to go.
-D Database name on the server to use.
-e Echo SQL input (usually in outputfile)
-E editor
Specify an editor to invoke. Defaults to vi.
-F FIPS mode ON. Server returns a message (but processes the query anyway) when it encounters a non-standard SQL command.
-g Display a brief help message
-h headers
Number of rows after which to repeat the column headers. Default is once per resultset.
-H hostname
Hostname of the client machine as it will be told to the server.
-I interfaces_file
Name of the interfaces or freetds.conf file to use.
-i inputfile
Name of script file, containing SQL.
-J client_charset
Not implemented.
-l login_timeout
How long to wait for the server to acknowledge a login attempt.
-m errorlevel
For errors of the severity level specified or higher, print only the message number, state, and error level. Below that level,
print nothing.
-n Suppress line numbers in echoed output.
-o outputfile
Name of output file, holding result data.
-p Prints performance statistics. Not implemented.
-P password
Database server password.
-s colseparator
The column separator. Default is space. Shell metacharacters require quoting.
-S server
Database server to which to connect.
-t timeout
The query timeout, in seconds. How long to wait for a query to be processed. The default is indefinitely, or as determined by
freetds.conf.
-U username
Database server login name.
-v Display version and copyright.
-w width
How many characters wide to print the output. Defaults to 80.
-X Use encrypted login. Not implemented in FreeTDS.
-y sybase_dir
Sets the SYBASE environment variable. Not used by FreeTDS.
-Y Use chained transactions.
-z language
Name of a language for fisql's prompts and messages. Cf. DBSETLNATLANG.
NOTES
fisql is a filter; it reads from standard input, writes to standard output, and writes errors to standard error. The -i, -o, and -e options
override these, of course.
fisql uses the db-lib API provided by FreeTDS. It was first implemented using Sybase's own library and continues to work with it. Before
(and after) modifying it, it would be well to test it with Sybase's library to assure compatibility between it and FreeTDS.
EXIT STATUS
fisql exits 0 on success, and >0 if the server cannot process the query.
fisql will report any errors returned by the server, but will continue processing. In a production environment, this behavior may be insuf-
ficiently stringent. To make it extremely intolerant of errors, change the message and error handlers to call exit(3).
HISTORY
fisql first appeared in FreeTDS 0.65.
AUTHORS
The fisql utility was written by Nicholas S. Castellano <entropy@freetds.org>, who contributed it to the FreeTDS project under the terms of
the GPL.
BUGS
Requires the GNU readline library.
doc 13 November 2011 fisql(1)