SunQuest
           MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old March 2nd, 2004, 10:52 AM
rtwitty rtwitty is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 4 rtwitty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Arrow ODBTP: Good solution for connecting to MSSQL from Linux/UNIX

Go to URL for details about a very good solution for connecting to a MS SQL Server database from Linux or UNIX.

Reply With Quote
  #2  
Old March 3rd, 2004, 04:39 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 26 m 29 sec
Reputation Power: 797
Anyone care to comment on how this compares to FreeTDS
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Reply With Quote
  #3  
Old March 4th, 2004, 10:10 AM
rtwitty rtwitty is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 4 rtwitty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
FreeTDS is primarily focused on the implementation of the TDS protocol on UNIX/Linux. The problem is that Microsoft has not publically documented their flavor of TDS, AFAIK. As a result, FreeTDS is always 1 or more steps behind, and susceptible to bugs caused by SQL Server upgrades and future service packs. Another issue is that many applications on Linux/UNIX machines rely on unixODBC and the FreeTDS ODBC driver. Neither of which is as good and stable as their Win32 counterparts.

ODBTP is actually more comparable to EasySoft's ODBC-ODBC bridge. The goal of ODBTP is to provide the best and most reliable way to communicate with Win32-based databases from any platform. It uses ODBC on the Win32 only server-side, and a special C library for EASILY building client-side applications. Unlike the FreeTDS and ODBC API's, the ODBTP API is designed to make it easy to create modules for scripting languages like PHP, Perl and Python. At the momentt, only a module (extension) exists for PHP.

Basically, the difference is that FreeTDS uses a reengineered version of Microsoft's TDS protocol to talk to SQL Server, while ODBTP uses Microsoft's version of Microsoft's TDS protocol. ODBTP is also considerably easier to install, and is faster than FreeTDS.

Reply With Quote
  #4  
Old March 4th, 2004, 12:04 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 26 m 29 sec
Reputation Power: 797
Just to let you know, we've been using FreeTDS for quite a while now since SQL Server 7.0 (most of our DB servers are now SQL 2000) and we haven't seen too many problems with it. Right now, we connect to SQL Server from *NIX with programs written in PHP, Perl, C and C++. Also, not all our servers are Linux -- we run quite a few FreeBSD servers and a couple of OpenBSD boxes as well. I also have a NetBSD server at home, with FreeTDS installed. I'll give ODBTP a try and see if they compile on these operating systems.

Also, ODBTP only has an extension for PHP, and quite a few of our programs are in perl, I don't think we'll be using it at work in the near future. However, I'm interested enough to write some C code and compare the performance. I'll run a few tests when I find some time .

Reply With Quote
  #5  
Old March 4th, 2004, 01:02 PM
rtwitty rtwitty is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 4 rtwitty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
So far, ODBTP has been successfully installed on Linux, Solaris and MacOS X.

ODBTP is fairly new, and was created because PHP's mssql support was inadequate and inconsistent across platforms. This is the reason for the bias towards PHP. The ODBTP protocol and C library were designed to facilitate the creation of a full featured PHP database extension. The odbtp extension supports all the functions from PHP's mssql extension. This allows PHP scripts that use the mssql extension to work with ODBTP with very little, if any, modifications. For example, PHP's PEAR DB mssql driver works with the odbtp extension without any changes.

Although ODBTP was primarily intended for SQL Server connectivity, it is also a great solution for connecting to MS Access, Visual FoxPro and other Win32-based databases from any platform.

In regards to a Perl module, I am hoping to find someone with expertise in that area to provide assistance.

Reply With Quote
  #6  
Old March 4th, 2004, 02:59 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 26 m 29 sec
Reputation Power: 797
>> PHP's mssql support was inadequate and inconsistent across platforms
Would you care to clarify this statement?

Reply With Quote
  #7  
Old March 4th, 2004, 06:53 PM
rtwitty rtwitty is offline
Banned
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 4 rtwitty User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Many of the databases that I work with have nvarchar and ntext fields. The mssql extension does not work very well with UNICODE data, especially on Windows. The odbc ext also is not adequate.

On UNIX, the mssql ext uses FreeTDS, and on Windows it uses the obsolete and completely unsupported DB-Library. My initial experience with PHP/FreetDS was on Solaris over a year ago. Not only was it unable to easily process UNICDOE data, but it would crash in response to certain queries. While PHP/DB-Library did not crash, it was impossible to use it for ntext fields. Any attempt will produce the following error:

Unicode data in a Unicode-only collation or ntext data cannot be sent to clients using DB-Library (such as ISQL) or ODBC version 3.7 or earlier

So, all of this led to the creation of ODBTP. Which IMHO provides the best connectivity between PHP and MSSQL. In fact it is superior to the odbc extension, which suffers from the fact that it uses ODBC 2 instead of ODBC 3. I am sure that you will determine this for yourself. :-)

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > ODBTP: Good solution for connecting to MSSQL from Linux/UNIX


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway