home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.databases
- Path: sparky!uunet!spool.mu.edu!agate!rsoft!mindlink!a269
- From: Mischa_Sandberg@mindlink.bc.ca (Mischa Sandberg)
- Subject: SYBASE: Returning results over a network from a 'C' executab
- Organization: MIND LINK! - British Columbia, Canada
- Date: Sat, 9 Jan 1993 07:26:13 GMT
- Message-ID: <19411@mindlink.bc.ca>
- Sender: news@deep.rsoft.bc.ca (Usenet)
- Lines: 54
-
- > lundell@gumby.mgi.com writes:
- >
- > We are using Sybase as our database server running on an RS6000. The
- > clients are
- > PCs running Microsoft Windows. We are able to call stored procedures from
- > the
- > clients and receive the result sets just fine.
- > However, I would like to be able to call a 'C' program directly (via an
- > RPC?)
- > from the client and have it return the result set identical to the stored
- > procedure. Is this feasible?
- Sure, you can do this, given a TCP/IP interface library and a fair bit
- of code. You'll learn all about the intricacies of registering RPC's,
- TLI for sockets (AIX is SVR4) and a bunch of other things. Your energy
- and enterprise are impressive.
- >
- > So my guess is that the 'C' program would use say use 'DBLib' to build a
- > result set from Sybase.
- Yup. And that leads to the question: could you express exactly why
- you want to do this? So far, it sounds like you want to do considerable
- work to accomplish no more than the existing interface ("identical",
- you say) with increased load on the network -- since your RS6000
- program will be talking TCP/IP internally to the dataserver, anyway.
-
- The only thing I can figure (and correct me if I'm wrong) is:
- - you want to add some control code in this gateway server, to
- limit user load, or something.
- - you want to work through a single thread (dblogin), perhaps so
- that multiple clients can share tempdb tables (serially)
- - you want to do something more complicated than what Transact is
- good for (no surprise), perhaps like symbolic processing
- of table/field names.
- - you figure you can do something more efficiently than a transact
- procedure.
-
- If one of the latter is your goal, I would strongly suggest that you
- knock the network side out of it, using the model gateway source
- provided with the Open Server stuff; then let the dataserver in
- effect handle your "exec myCustomerServer...myNiftyProcedure" calls.
- If you really want to send back choking amounts of data to the clients,
- read about the tabular data stream (TDS).
- >
- > Has anyone ever attempted something similar to this??
- Yes, the latter, but no, not the former. And it was to (more or less)
- answer the repeated question, "how can I pass a table name as a parameter
- to a procedure?".
-
- --
- Mischa Sandberg ... Mischa_Sandberg@mindlink.bc.ca
- or uunet!van-bc!rsoft!mindlink!Mischa_Sandberg
- *-*-*-*-*-*-*-*-*-*-*
- Engineers think equations are an approximation of reality.
- Physicists think reality is an approximation of the equations.
- Mathematicians never make the connection.
-