HEX
Server: Apache
System: Linux vpshost0650.publiccloud.com.br 4.4.79-grsec-1.lc.x86_64 #1 SMP Wed Aug 2 14:18:21 -03 2017 x86_64
User: bandeirantesbomb3 (10068)
PHP: 8.0.7
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/share/doc/freetds-0.95.81/userguide/python.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML
><HEAD
><TITLE
>Python</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="FreeTDS User Guide"
HREF="index.htm"><LINK
REL="UP"
TITLE="How to get what works with it working"
HREF="software.htm"><LINK
REL="PREVIOUS"
TITLE="PHP"
HREF="php.htm"><LINK
REL="NEXT"
TITLE="Qt"
HREF="qt.htm"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="userguide.css"><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=utf-8"></HEAD
><BODY
CLASS="SECT1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
><SPAN
CLASS="PRODUCTNAME"
>FreeTDS</SPAN
> User Guide: A Guide to Installing, Configuring, and Running <SPAN
CLASS="PRODUCTNAME"
>FreeTDS</SPAN
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="php.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 7. How to get what works with it working</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="qt.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="PYTHON"
>Python</A
></H1
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="PYMSSQL"
>pymssql</A
></H2
><P
>The <SPAN
CLASS="PRODUCTNAME"
>pymssql</SPAN
> module is a simple database interface to Microsoft SQL Server for <SPAN
CLASS="PRODUCTNAME"
>Python</SPAN
> that builds on top of <SPAN
CLASS="PRODUCTNAME"
>FreeTDS</SPAN
> to provide a Python DB-API v2 (<A
HREF="http://www.python.org/dev/peps/pep-0249/"
TARGET="_top"
>PEP-249</A
>) interface to SQL Server.</P
><P
>The 2.x branch of <SPAN
CLASS="PRODUCTNAME"
>pymssql</SPAN
> take advantage of recent releases (0.91 and newer) of <SPAN
CLASS="PRODUCTNAME"
>FreeTDS</SPAN
> and by doing that removes many of the limitations previously found with older <SPAN
CLASS="PRODUCTNAME"
>FreeTDS</SPAN
> versions and the 1.x branch.</P
><P
><SPAN
CLASS="PRODUCTNAME"
>pymssql</SPAN
> features include:</P
><P
></P
><UL
><LI
><P
>Unicode friendly</P
></LI
><LI
><P
>Python 3 friendly</P
></LI
><LI
><P
>Works on most popular operating systems</P
></LI
><LI
><P
>Written in <A
HREF="http://cython.org/"
TARGET="_top"
>Cython</A
> for performance</P
></LI
><LI
><P
>Includes a supported and documented low-level module (<TT
CLASS="FILENAME"
>_mssql</TT
>) that you can use instead of the DB-API</P
></LI
><LI
><P
>Supports stored procedures with both return values and output parameters</P
></LI
><LI
><P
>A comprehensive test suite</P
></LI
></UL
><P
>Please refer to the <SPAN
CLASS="PRODUCTNAME"
>pymssql</SPAN
> <A
HREF="http://pymssql.org"
TARGET="_top"
>home page</A
> where you'll find complete documentation on how to obtain, install and use it.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="SYBASE.PYTHON.MODULE"
>Sybase module</A
></H2
><P
>You can obtain the <SPAN
CLASS="PRODUCTNAME"
>Python</SPAN
> Sybase module <A
HREF="http://object-craft.com.au/projects/sybase/download.html"
TARGET="_top"
>here</A
>.
This example uses version 0.37, the most current at the time of this writing, please adjust accordingly if using a different version.
	<PRE
CLASS="SCREEN"
>	<SAMP
CLASS="PROMPT"
>$ </SAMP
><KBD
CLASS="USERINPUT"
>tar xvfz sybase-0.37.tgz</KBD
>
	<SAMP
CLASS="PROMPT"
>$ </SAMP
><KBD
CLASS="USERINPUT"
>cd sybase-0.37</KBD
>
	<SAMP
CLASS="PROMPT"
>$ </SAMP
><KBD
CLASS="USERINPUT"
>export SYBASE=/usr/local/freetds</KBD
>
	<SAMP
CLASS="PROMPT"
>$ </SAMP
><KBD
CLASS="USERINPUT"
>export CFLAGS="-DHAVE_FREETDS"</KBD
>
	<SAMP
CLASS="PROMPT"
>$ </SAMP
><KBD
CLASS="USERINPUT"
>export LD_LIBRARY_PATH=/usr/local/freetds/lib:${LD_LIBRARY_PATH}</KBD
>
	<SAMP
CLASS="PROMPT"
>$ </SAMP
><KBD
CLASS="USERINPUT"
>python setup.py install</KBD
></PRE
>
	Edit the example.py and fix the bottom stuff, <SPAN
CLASS="PRODUCTNAME"
>FreeTDS</SPAN
> lacks the 110
	symbols for version use 100
<PRE
CLASS="SCREEN"
>	<SAMP
CLASS="PROMPT"
>$ </SAMP
><KBD
CLASS="USERINPUT"
>python example.py</KBD
></PRE
></P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="php.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.htm"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="qt.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>PHP</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="software.htm"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Qt</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>