From: Lloyd K. <py...@ve...> - 2009-09-08 17:00:17
|
On Tue, 2009-09-08 at 09:05 -0700, VV W wrote: > Hello, > > I searched the Python-Sybase Archives however I did not find what I > need. So I post my question here. > > My Sybase database sits on another computer in a different place. I > know the server's name for the computer. My qestions are > (1.) How to give Sybase directory in the "setup.py"? > (3.) Any information or webpage links that you can provide to me for > such a remote datababse case? If you are using freetds, you need to update your /etc/freetds/freetds.conf file. The samples from the end of the file are: # A typical Sybase server [egServer50] host = symachine.domain.com port = 5000 tds version = 5.0 # A typical Microsoft server [egServer70] host = ntmachine.domain.com port = 1433 tds version = 7.0 Your Python code would look like self.conn = Sybase.connect( egServer70, ..... where you reference the name you used in the freetds.conf file. > > I work on Ubuntu. > > Thanks so much > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ Python-sybase-misc mailing list Pyt...@li... https://lists.sourceforge.net/lists/listinfo/python-sybase-misc -- Lloyd Kvam Venix Corp DLSLUG/GNHLUG library http://dlslug.org/library.html http://www.librarything.com/catalog/dlslug http://www.librarything.com/rsshtml/recent/dlslug http://www.librarything.com/rss/recent/dlslug |