Executing MS-SQL stored procedures from Unix/C Program?


 
Thread Tools Search this Thread
Operating Systems Solaris Executing MS-SQL stored procedures from Unix/C Program?
# 1  
Old 06-19-2007
Executing MS-SQL stored procedures from Unix/C Program?

All,

We are contemplating a port of an existing software product and would like to expend as little effort as possible. Our new database would be MS-SQL, and we would write stored procedures to perform common db operations. We'd like to call these stored procedures from C or C++ code running on a Solaris (2.5.1, 8.x or 10.x) box. We found one product/library that seems to provide the interface we need, called "EnterpriseDB". Are there others? Or is there a different way to accomplish what we want to do?Smilie

Thanks!
# 2  
Old 06-19-2007
Write simple wrapper programs on the windows machine that use ODBC or similar, then use sockets or a higher level protocol to talk from the Solaris box to those wrapper programs.
# 3  
Old 06-21-2007
Okay, we understand the (web service) code needs to go on the MS-SQL box. But how does a process on the Solaris box talk to that web service on the MS-SQL machine?
# 4  
Old 06-22-2007
Quote:
Originally Posted by mparks
Okay, we understand the (web service) code needs to go on the MS-SQL box. But how does a process on the Solaris box talk to that web service on the MS-SQL machine?
You need to use odbc as stated in the previous post by porter. This is not dependent on any web services you may have. The easiest way I would solve this is by writing a java app to use a jdbc-odbc connection to send sql statements to the MS-SQL server.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to compile a stored procedure that is there with in a script file(.sql) in unix

Hi, How can i compile the procedure code that is there in a script file (.sql) in unix. (0 Replies)
Discussion started by: krishna_gnv
0 Replies

2. Shell Programming and Scripting

Executing pl/sql using sqlplus on unix

Hi to all, I have a endday.sh file. And I execute this like "sh endday.sh" from command prompt. In endday.sh file it writes: sqlplus temp/temp@data @run.sql& echo $!>>pid.txt However my aim is not to put the pid into pid.txt but I need to insert the pid into an oracle table using sqlplus.... (1 Reply)
Discussion started by: maverick1234
1 Replies

3. UNIX for Advanced & Expert Users

Executing pl/sql using sqlplus on unix

Hi to all, I have a endday.sh file. And I execute this like "sh endday.sh" from command prompt. In endday.sh file it writes: sqlplus temp/temp@data @run.sql& echo $!>>pid.txt However my aim is not to put the pid into pid.txt but I need to insert the pid into an oracle table using sqlplus.... (1 Reply)
Discussion started by: maverick1234
1 Replies

4. UNIX for Advanced & Expert Users

Executing Stored Proc from unix prompt.

Hi All, I want to run/execute a stored procedure (sybase) from unix command prompt not by login in isql utility which is provided my Sybase guys. Is there way ..? Thanks in advance for your help !!! Regards, Arvind S. (0 Replies)
Discussion started by: arvindcgi
0 Replies

5. Shell Programming and Scripting

Executing multiple Oracle procedures concurrently

I am using KSH with an OS of AIX Version 5.3. From my shell script, that will be scheduled thorugh a CRON, I need to execute 2 Oracle stored procedures concurrently. If we execute them one at a time, the total execution time takes 4 hours or more. Since they are not dependent on each other and... (6 Replies)
Discussion started by: multidogzoomom
6 Replies

6. UNIX for Dummies Questions & Answers

Stored Procedures

Dear friends, can anyone suggest links for online books on stored procedures in oracle. Cheers, (2 Replies)
Discussion started by: thumsup9
2 Replies

7. Solaris

Calling Oracle Stored Procedures in UNIx(sun solaris)

I have created 3 Procedures all similar to this one: I then created 3 shell sripts which will call the sql? finally created a calling script to call the procedure. I am a bit unsure how to this all works, can someone check my code and I am doing this right? Also could I add my procedure (first... (0 Replies)
Discussion started by: etravels
0 Replies
Login or Register to Ask a Question