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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can SQL Server call be made from unix sh

Status
Not open for further replies.

sspreethi

Technical User
Jan 30, 2008
2
US
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
query tcp ether NSXNA267.ibt.ibtco.com 1433
master tcp ether NSXNA267.ibt.ibtco.com 1433

When I give ->
isql -U <userid> -P <password> -S NSXNA267
I get the below error.
DB-LIBRARY error:
Unknown network type found in interface file.

isql -U <userid> -P <password> -S NSXNA267.ibt.ibtco.com
DB-LIBRARY error:
Server name not found in interface file.

Thanks,
Preethi
 
Are you referring to Sybase SQL Server or Microsoft SQL Server?
 
Have you tried just this...
Code:
isql -U <userid> -P <password> -S NSXNA267
 
It is Microsoft Sql server.
Sam - Yes i tried the code I mentioned in my above post.

Please let me know other ways.
 
I use the FreeTDS libraries (for Sybase and MS SQLServer)
Then I install the TDS DB API for Python (or you could use the shell)


&quot;If you always do what you've always done, you will always be where you've always been.&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top