Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: Connecting from *nix/Apache/mod_perl to SQL Server

by andreychek (Parson)
on Dec 11, 2001 at 20:30 UTC ( #130964=note: print w/replies, xml ) Need Help??

in reply to Connecting from *nix/Apache/mod_perl to SQL Server

Thats certainly an interesting predicement you're in ;-)

As far as ODBC goes -- in order to do ODBC from your *nix box over to Windows, I believe you will still need a "bridge" to get your there. There are tools that can help you with this, ranging from open source to commercial. You would use unixODBC or iodbc along with it. Check out: (I just searched for "odbc bridge" at freshmeat)

  • dbtcp (Open Source)
  • ODBC-ODBC Bridge (Commercial)

    Now, for FreeTDS. I haven't looked at that in some time.. but I heard a rumour some months ago that SQL Server 7.0 was the last version that it would work with, as MS is moving it away from functioning like Sybase. I'm sure digging through the FreeTDS website would clear that up, but it's something to consider. Even if it still works now.. as soon as MS changes it enough, it may never work again.

    Doing HTTP and XML is always fun, and you could always consider using Apache 2.0, which is supposed to work well on Windows. It's of course in beta now, but I've been hearing good reports about it.

    There are also two other interesting options you can look into. There is the ODBC Socket Server, which is a service which you run on your NT box. It's job is to expose ODBC resources via TCP/IP, making it very easy to access from non-windows platforms. I've never used it, but they claim that it's pretty fast.

    And lastly, you could always consider a middleware/application server product. That might be a bit much for what you're looking to do, but you never know. Anything from IBM's Websphere to the open source JBoss, there's a lot available.

    Good luck!
    • Comment on Re: Connecting from *nix/Apache/mod_perl to SQL Server
  • Log In?

    What's my password?
    Create A New User
    Node Status?
    node history
    Node Type: note [id://130964]
    [marinersk]: Corion This DBA wants to smack others who like putting whitespace in column names.
    [marinersk]: s/smack/whap/;
    [talexb]: Wow, what hilariously bad form.
    [SuicideJunkie]: Just wait; someday soon, you'll be given a DB with unicode emojis in the column names.
    [Corion]: marinersk: Well, I have done select statements like select sum(foo) as "Total Amount", ..., but to have a table like that makes me shudder
    [Corion]: SuicideJunkie: :-D
    [marinersk]: SuicideJunkie LOL
    [choroba]: Woohoo! Fixed a test that hasn't run for 3 years.
    [marinersk]: Corion Yes, sometimes whitespace in column headers is acceptable, but I still consider it be less than desireable if that query might get revectored for an ETL-esque process...
    [marinersk]: choroba++

    How do I use this? | Other CB clients
    Other Users?
    Others scrutinizing the Monastery: (14)
    As of 2017-05-25 15:00 GMT
    Find Nodes?
      Voting Booth?