Sophie

Sophie

distrib > Mandriva > 2008.1 > i586 > by-pkgid > 703d980c580707c382b4e43e25965bc5 > files > 12017

php-manual-pt_BR-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Microsoft SQL Server</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Manual do PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Referência das Funções"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="udm_set_agent_param"
HREF="function.udm-set-agent-param.html"><LINK
REL="NEXT"
TITLE="mssql_bind"
HREF="function.mssql-bind.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
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"
>Manual do PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.udm-set-agent-param.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.mssql-bind.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.mssql"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>XCII. Microsoft SQL Server</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN123420"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mssql.intro"
>Introdução</A
></H1
><P
>&#13;     Estas funções permitem a você acessar um banco de dados do MS SQL Server.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mssql.requirements"
>Dependências</A
></H1
><P
>&#13;     Requerimentos para as plataformas Win32.
    </P
><P
>&#13;     A extensão requer que as ferramentas de cliente do MS SQL sejam
     instaladas no sistema onde o PHP esta instalado. As ferramentas de cliene podem
     ser instaladas apartir do CD do MS SQL Server ou copiando
     <TT
CLASS="filename"
>ntwdblib.dll</TT
> de
     <TT
CLASS="filename"
>\winnt\system32</TT
> da máquina do servidor
     <TT
CLASS="filename"
>\winnt\system32</TT
> na máquina do PHP.
     Copiar <TT
CLASS="filename"
>ntwdblib.dll</TT
> irá somente prover acesso.
     Configuração do cliente irá requerer a instalação de todas as ferramentas.
    </P
><P
>&#13;     Requerimentos para as plataformas Unix/Linux.
    </P
><P
>&#13;     Para usar a extensão MSSQL no Unix/Linux, você primeiramente precisa compilar e
     instalar a biblioteca FreeTDS. Código fonte e instruções de instalação
     estão disponíveis na página de FreeTDS:
     <A
HREF="http://www.freetds.org/"
TARGET="_top"
>http://www.freetds.org/</A
>
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>Nota: </B
>
      No Windows, é usado a DBLIB da Microsoft. Funções que retornam um nome de coluna
      estão baseadas na função <TT
CLASS="literal"
>dbcolname()</TT
> na DBLIB.
      DBLIB foi desenvolvida para o SQL Server 6.x aonde o limite do identificador é 30. 
      Por esta razão, o limite de tamanho da coluna é 30 caracteres. 
      Nas plataformas onde o FreeTDS é usado(Linux), isto não é um problema.
     </P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mssql.installation"
>Instalação</A
></H1
><P
>&#13;  A extensão MSSQL é ativada se adicionando extension=php_mssql.dll no <TT
CLASS="filename"
>php.ini</TT
>.
 </P
><P
>&#13;  Para que estas funções funcionem, você tem que compilar o PHP com
  <CODE
CLASS="option"
>--with-mssql[=DIR]</CODE
>, aonde DIR é o
  diretório de instalação do FreeTDS. E FreeTDS deve ser compilado usando
    <CODE
CLASS="option"
>--enable-msdblib</CODE
>.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mssql.configuration"
>Configurações em execução</A
></H1
><P
>&#13;O comportamento dessas funções podem ser modificado pelas configurações do <TT
CLASS="filename"
>php.ini</TT
>.
</P
><P
>&#13; <DIV
CLASS="table"
><A
NAME="AEN123450"
></A
><P
><B
>Tabela 1. Opções de configuração do MS SQL Server</B
></P
><TABLE
BORDER="1"
CLASS="CALSTABLE"
><COL><COL><COL><THEAD
><TR
><TH
>Nome</TH
><TH
>Padrão</TH
><TH
>Modificável</TH
></TR
></THEAD
><TBODY
><TR
><TD
>mssql.allow_persistent</TD
><TD
>"1"</TD
><TD
>PHP_INI_SYSTEM</TD
></TR
><TR
><TD
>mssql.max_persistent</TD
><TD
>"-1"</TD
><TD
>PHP_INI_SYSTEM</TD
></TR
><TR
><TD
>mssql.max_links</TD
><TD
>"-1"</TD
><TD
>PHP_INI_SYSTEM</TD
></TR
><TR
><TD
>mssql.min_error_severity</TD
><TD
>"10"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.min_message_severity</TD
><TD
>"10"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.compatability_mode</TD
><TD
>"0"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.connect_timeout</TD
><TD
>"5"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.timeout</TD
><TD
>"60"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.textsize</TD
><TD
>"-1"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.textlimit</TD
><TD
>"-1"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.batchsize</TD
><TD
>"0"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.datetimeconvert</TD
><TD
>"1"</TD
><TD
>PHP_INI_ALL</TD
></TR
><TR
><TD
>mssql.secure_connection</TD
><TD
>"0"</TD
><TD
>PHP_INI_SYSTEM</TD
></TR
><TR
><TD
>mssql.max_procs</TD
><TD
>"25"</TD
><TD
>PHP_INI_ALL</TD
></TR
></TBODY
></TABLE
></DIV
>
 Para maiores detalhes e definição das constantes PHP_INI_* veja
 <A
HREF="function.ini-set.html"
><B
CLASS="function"
>ini_set()</B
></A
>.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mssql.resources"
>Tipos Resource</A
></H1
><P
>&#13;    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="mssql.constants"
>Constantes pré-definidas</A
></H1
><P
>&#13;As contantes abaixo são definidas por esta extensão e somente
 estarão disponíveis quando a extensão foi compilada com o PHP
 ou carregada dinamicamente durante a execução.
</P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><TT
CLASS="constant"
><B
>MSSQL_ASSOC</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>MSSQL_NUM</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>MSSQL_BOTH</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQLTEXT</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQLVARCHAR</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQLCHAR</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQLINT1</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQLINT2</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQLINT4</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQLBIT</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
><DT
><TT
CLASS="constant"
><B
>SQLFLT8</B
></TT
> 
     (<A
HREF="language.types.integer.html"
><B
CLASS="type"
>integer</B
></A
>)</DT
><DD
><P
>&#13;     
    </P
></DD
></DL
></DIV
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Índice</B
></DT
><DT
><A
HREF="function.mssql-bind.html"
>mssql_bind</A
>&nbsp;--&nbsp;
     Adiciona um parâmetro a um stored procedure ou a um remote stored procedure
    </DT
><DT
><A
HREF="function.mssql-close.html"
>mssql_close</A
>&nbsp;--&nbsp;Fecha a conexão com o servidor MS SQL</DT
><DT
><A
HREF="function.mssql-connect.html"
>mssql_connect</A
>&nbsp;--&nbsp;Abre uma conexão com o servidor MS SQL</DT
><DT
><A
HREF="function.mssql-data-seek.html"
>mssql_data_seek</A
>&nbsp;--&nbsp;Move o ponteiro interno da linha</DT
><DT
><A
HREF="function.mssql-execute.html"
>mssql_execute</A
>&nbsp;--&nbsp;
     Executa uma stored procedure num banco de dados de um servidor MS SQL
    </DT
><DT
><A
HREF="function.mssql-fetch-array.html"
>mssql_fetch_array</A
>&nbsp;--&nbsp;Retorna uma linha como uma matriz associativa, matriz numérica ou ambas</DT
><DT
><A
HREF="function.mssql-fetch-assoc.html"
>mssql_fetch_assoc</A
>&nbsp;--&nbsp;
     Retorna uma matriz associativa da linha atual do conjunto de resultados especificado por result_id
    </DT
><DT
><A
HREF="function.mssql-fetch-batch.html"
>mssql_fetch_batch</A
>&nbsp;--&nbsp;
     Retorna o próximo lote de registros
    </DT
><DT
><A
HREF="function.mssql-fetch-field.html"
>mssql_fetch_field</A
>&nbsp;--&nbsp;Retorna informação sobre o campo</DT
><DT
><A
HREF="function.mssql-fetch-object.html"
>mssql_fetch_object</A
>&nbsp;--&nbsp;Devolve a linha como um objeto</DT
><DT
><A
HREF="function.mssql-fetch-row.html"
>mssql_fetch_row</A
>&nbsp;--&nbsp;Retorna uma matriz enumerada</DT
><DT
><A
HREF="function.mssql-field-length.html"
>mssql_field_length</A
>&nbsp;--&nbsp;Retorna o tamanho de um campo</DT
><DT
><A
HREF="function.mssql-field-name.html"
>mssql_field_name</A
>&nbsp;--&nbsp;Retorna o nome de um campo</DT
><DT
><A
HREF="function.mssql-field-seek.html"
>mssql_field_seek</A
>&nbsp;--&nbsp;Estabelece o índice do campo</DT
><DT
><A
HREF="function.mssql-field-type.html"
>mssql_field_type</A
>&nbsp;--&nbsp;Retorna o tipo de um campo</DT
><DT
><A
HREF="function.mssql-free-result.html"
>mssql_free_result</A
>&nbsp;--&nbsp;Limpa o resultado da memória</DT
><DT
><A
HREF="function.mssql-free-statement.html"
>mssql_free_statement</A
>&nbsp;--&nbsp;Free statement memory</DT
><DT
><A
HREF="function.mssql-get-last-message.html"
>mssql_get_last_message</A
>&nbsp;--&nbsp;
     Retorna a ultima mensagem do servidor
    </DT
><DT
><A
HREF="function.mssql-guid-string.html"
>mssql_guid_string</A
>&nbsp;--&nbsp;
     Converte um 16 byte binary GUID para uma string
    </DT
><DT
><A
HREF="function.mssql-init.html"
>mssql_init</A
>&nbsp;--&nbsp;
     Inicializa um stored procedure ou um remote stored procedure
    </DT
><DT
><A
HREF="function.mssql-min-error-severity.html"
>mssql_min_error_severity</A
>&nbsp;--&nbsp;Estabelece a menor severidade a erros</DT
><DT
><A
HREF="function.mssql-min-message-severity.html"
>mssql_min_message_severity</A
>&nbsp;--&nbsp;Estabelece a menor severidade a mensagens</DT
><DT
><A
HREF="function.mssql-next-result.html"
>mssql_next_result</A
>&nbsp;--&nbsp;Move o ponteiro interno do resultado para o próximo resultado</DT
><DT
><A
HREF="function.mssql-num-fields.html"
>mssql_num_fields</A
>&nbsp;--&nbsp;Retorna o número de campos em um resultado</DT
><DT
><A
HREF="function.mssql-num-rows.html"
>mssql_num_rows</A
>&nbsp;--&nbsp;Retorna o número de linhas em um resultado</DT
><DT
><A
HREF="function.mssql-pconnect.html"
>mssql_pconnect</A
>&nbsp;--&nbsp;Abre uma conexão persistente com MS SQL</DT
><DT
><A
HREF="function.mssql-query.html"
>mssql_query</A
>&nbsp;--&nbsp;Envia uma query ao MS SQL</DT
><DT
><A
HREF="function.mssql-result.html"
>mssql_result</A
>&nbsp;--&nbsp;Retorna dados do resultado</DT
><DT
><A
HREF="function.mssql-rows-affected.html"
>mssql_rows_affected</A
>&nbsp;--&nbsp;
     Retorna o número de registros afetados pela query
    </DT
><DT
><A
HREF="function.mssql-select-db.html"
>mssql_select_db</A
>&nbsp;--&nbsp;Seleciona um banco de dados do MS SQL</DT
></DL
></DIV
></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="function.udm-set-agent-param.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Principal</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.mssql-bind.html"
ACCESSKEY="N"
>Próxima</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>udm_set_agent_param</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>Acima</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>mssql_bind</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>