Is it possible to connect to SQL Server 2005 Database from Sun Studio C++

Is it possible to connect to SQL Server 2005 Database from a Sun Studio C++ application, if so how?
[106 byte] By [lrresto] at [2007-11-26 10:27:35]
# 1
Use the database API. There is no special connection between C++ programs or compilers and a database application.
clamage45 at 2007-7-7 2:32:04 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

I'm not aware of a database api. Can you give me a little more info on this? We have a program written in C++ that parses some binary files and converts the data to ascii. We need to take all of the ascii data and put it into a Microsoft SQL Server Database, no other choice. I've never done any database work on th eUnix side, only in Windows, so I am unfamiliar with how to connect to a database programmatically with C++ on Solaris and Insert the data into the approriate table.

lrresto at 2007-7-7 2:32:04 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

There are no special features in C++ or in Sun Studio that relate directly to database access or to connecting to remote database servers.

Your question would be for Microsoft: how to connect to their SQL server running on Windows from a program running on a Unix system. Maybe the server documentation covers that topic.

If you isolate the "how to connect to the server" part, the rest of the program should be the same on Unix as on Windows, using portable C++ code.

clamage45 at 2007-7-7 2:32:04 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 4
That is the next step, since we used generic C++ we will have to try to get the app to work under Microsoft Visual C++ in order to connect to SQL Server. I'd hoped that there was some library available on the Unix side that would allow connectivity.
lrresto at 2007-7-7 2:32:04 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 5
First you have to find out how to connect. After that, the answer might be obvious.For example, if you can connect via remote procedure call, you can use the standard Unix RPC functionality. (Try "man rpc")
clamage45 at 2007-7-7 2:32:04 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 6
1. As I remember MS SQL server was originated from Sybase SQL. So they client/server protocols are similar at least for some previous version of MS SQL.2. Try to google. Might be this article helps you: http://www.freetds.org
Atanasyan at 2007-7-7 2:32:04 > top of Java-index,Development Tools,Solaris and Linux Development Tools...