tiagofelipebones
(usa Ubuntu)
Enviado em 15/08/2017 - 10:41h
Bom Dia a todos,
reinstalei todos os drivers, até formatei a máquina e segui todos os passos novamente mas o resultado foi o mesmo, com o comando tsql -C recebi o seguinte retorno:
Version: freetds v1.00.27
freetds.conf directory: /usr/local/etc
MS db-lib source compatibility: no
Sybase binary compatibility: no
Thread safety: yes
iconv library: yes
TDS version: 7.3
iODBC: no
unixodbc: no
SSPI "trusted" logins: no
Kerberos: no
OpenSSL: no
GnuTLS: no
MARS: no
o arquivo de configuração freetds.conf:
GNU nano 2.5.3 Arquivo: /usr/local/etc/freetds.conf
# $Id: freetds.conf,v 1.12 2007-12-25 06:02:36 jklowden Exp $
#
# This file is installed by FreeTDS if no file by the same
# name is found in the installation directory.
#
# For information about the layout of this file and its settings,
# see the freetds.conf manpage "man freetds.conf".
# Global settings are overridden by those in a database
# server specific section
[global]
# TDS protocol version
tds version = auto
# Whether to write a TDSDUMP file for diagnostic purposes
# (setting this to /tmp is insecure on a multi-user system)
; dump file = /tmp/freetds.log
; debug flags = 0xffff
# Command and connection timeouts
; timeout = 10
; connect timeout = 10
# If you get out-of-memory errors, it may mean that your client
# is trying to allocate a huge buffer for a TEXT field.
# Try setting 'text size' to a more reasonable limit
text size = 64512
# If you experience TLS handshake errors and are using openssl,
# try adjusting the cipher list (don't surround in double or single quotes)
# openssl ciphers = HIGH:!SSLv2:!aNULL:-DH
# 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
#O conteúdo a seguir foi inserido manualmente
# A typical Microsoft server
#O conteúdo a seguir foi inserido manualmente
# A typical Microsoft server
[dbserverdsn]
Driver = FreeTDS
Server = STATION1.database.windows.net
Port = 1433
Database = cut
Driver=/usr/local/lib/libtdsodbc.so
UsageCount = 1
tds version = 7.0
odbc.ini
as linhas comentadas '#' são para testes
GNU nano 2.5.3 Arquivo: /etc/odbc.ini
#Este arquivo estava branco na instalação e todo o seu conteudo foi inserido manualmente
[dbserverdsn]
Driver = FreeTDS
#Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
#Driver=/usr/local/lib/libtdsodbc.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so
#Server = 192.168.1.206
Server = STATION1.database.windows.net
Port = 1433
Database = cut
Username = sa
Password = minhasenha
UsageCount = 1
[Default]
Driver=/usr/local/lib/libtdsodbc.so
#Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
[ODBC Data Sources]
FreeTDS = SQL Server
arquivo odbcinst.ini
GNU nano 2.5.3 Arquivo: /etc/odbcinst.ini
#Este arquivo estava branco na instalação e foi inserido todo o conteúdo manualmente
[ODBC]
Trace = No
TraceFile = /tmp/odbc.log
[FreeTDS]
Description = FreeTDS Driver v0.91
Driver = /usr/lib/x86_64-linux-gnu/odbc/libtdsodbc.so
Setup = /usr/lib/x86_64-linux-gnu/odbc/libtdsS.so
fileusage=1
dontdlclose=1
UsageCount=1