dbTalk Databases Forums  

Connect from Unix (Perl) to MS SQL Server 2000

comp.databases.sybase comp.databases.sybase


Discuss Connect from Unix (Perl) to MS SQL Server 2000 in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jmalherbe@gmail.com
 
Posts: n/a

Default Connect from Unix (Perl) to MS SQL Server 2000 - 03-27-2006 , 05:50 AM






Hi,

We've been using Sybase:BLib in a Perl script to connect from a Unix
(Solaris) box to a Microsoft SQL Server 7.0. This has been fine but now
they DB guys have upgraded the MS SQL Server from 7.0 to MS SQL Server
2000 and it now no longer works.
We are getting the following error (from the 2000 server) for the same
code that works on the 7.0 DB:
Sybase error: Unexpected EOF from SQL Server.

Ideally I'd like to not have to use FreeTDS as I don't have easy access
to the QA and Prod servers to install this.

Has anyone got any idea's about getting this to work?

Thanks,

Jeremy


Reply With Quote
  #2  
Old   
Michael Peppler
 
Posts: n/a

Default Re: Connect from Unix (Perl) to MS SQL Server 2000 - 03-27-2006 , 12:44 PM






On Mon, 27 Mar 2006 02:50:22 -0800, jmalherbe wrote:

Quote:
Hi,

We've been using Sybase:BLib in a Perl script to connect from a Unix
(Solaris) box to a Microsoft SQL Server 7.0. This has been fine but now
they DB guys have upgraded the MS SQL Server from 7.0 to MS SQL Server
2000 and it now no longer works.
We are getting the following error (from the 2000 server) for the same
code that works on the 7.0 DB:
Sybase error: Unexpected EOF from SQL Server.

Ideally I'd like to not have to use FreeTDS as I don't have easy access to
the QA and Prod servers to install this.

Has anyone got any idea's about getting this to work?
Short answer - you can't. MS has made their most recent servers
incompatible with the basic 4.0 TDS protocol as implemented by Sybase.

You can use FreeTDS, or you can use an ODBC driver (commercial), or you
could use a gateway of some sort so that you don't connect directly
between the Unix host and the MS-SQL db server.

Michael
--
Michael Peppler [TeamSybase] mpeppler (AT) peppler (DOT) org - http://www.peppler.org/
Sybase DBA/Developer
Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html




Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.