freetds

Remote connect to SQL Server Standard Edition from PHP/FreeBSD

北城以北 提交于 2019-12-12 02:48:14
问题 Unable to connect to our company MSSQL server from one of our FreeBSD servers. # telnet 192.168.1.51 1433 Trying 192.168.1.51... telnet: connect to address 192.168.1.51: Connection refused telnet: Unable to connect to remote host No firewall running on the MSSQL server, and i have opened the default port on the BSD-FW 00210 allow tcp from any to any dst-port 1433 in 00215 allow tcp from any to any dst-port 1433 out Any ideas on this? The specifics of the MSSQL server running on a Windows

How to query in a specific database on Azure?

坚强是说给别人听的谎言 提交于 2019-12-12 02:20:00
问题 I'm trying to execute a (very) simple query on Azure MSSql Server using PHP, but it does not work and prints the follow message: Warning: mssql_query(): message: Invalid object name 'MyTable'. (severity 16) I believe that the underlying driver is connecting directly the master database and that's why my objects are not available. So the obvious solution could be mssql_select_db() function, but it raises the follow error message: Warning: mssql_select_db(): message: USE statement is not

Cannot install tiny_tds on os.x 10.9.4

耗尽温柔 提交于 2019-12-12 01:57:54
问题 I'm trying to install tiny_tds on a mac running OS.X Mavericks but I receive the following error: ERROR: Error installing tiny_tds: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb gem install tiny_tds -- --without-iconvlib --with-freetds-lib=/usr/local/Cellar/freetds/0.91/lib --with-freetds-include=/usr/local/Cellar/freetds/0.91/include checking for iconv_open() in iconv.h... no checking for iconv_open() in -lfalse...

unixODBC/FreeTDS results truncated to 255 character

别来无恙 提交于 2019-12-11 22:30:09
问题 UPDATE 2 I turned on tracing and ran my sample query. Here is the trace. I do see the statement Strlen Or Ind = 0x7fff9c84ee88 -> 255 . The indicator variable is defined as SQLLEN indicator; Is this not initialized properly? [ODBC][22407][1379343424.503572][__handles.c][450] Exit:[SQL_SUCCESS] Environment = 0x14f8160 [ODBC][22407][1379343424.503627][SQLSetEnvAttr.c][182] Entry: Environment = 0x14f8160 Attribute = SQL_ATTR_ODBC_VERSION Value = 0x3 StrLen = 0 [ODBC][22407][1379343424.503654]

Zend Framework 2, PDO dblib driver, how to change SQL Platform Decorator

筅森魡賤 提交于 2019-12-11 19:24:21
问题 It seems that ZF2 with the PDO:dblib driver defaults to using the SQL92 SQL decorator. How do I use the DI system to tell it to use the SqlServer decorator instead? Just can't get my head around it. The issue is that the paginator attempts to use LIMIT/OFFSET syntax which doesn't work in SQL Server. Another way of phrasing it is how do I customise the Paginator returned from fetchAll() on a table object to use the SqlServer platform? Chris 回答1: OK, well I found there's a much easier way to do

Install sqsh for freetds (Sql Server)

我们两清 提交于 2019-12-11 14:53:53
问题 Duplicate: I can't make SQSH 2.1.7 with freetds 0.91 I am trying to install sqsh for freetds (SQL Server) as per this answer. I installed freetds under /opt/freetds . However, I am getting the following error building sqsh: [noahlz:sqsh-2.4]$ sudo ./configure --prefix=/opt/sqsh ... configure: error: Unable to locate Sybase installation. Check your SYBASE environment variable setting. I tried setting export SYBASE=/opt/freetds to no avail. 回答1: On OS X I'd suggest: brew install sqsh Man, I

freetds: Undefined symbols for architecture x86_64

心不动则不痛 提交于 2019-12-11 12:33:45
问题 I'm installing freetds using brew install freetds on my Mac. But I get an error like this: /bin/sh ../../../libtool --tag=CC --mode=link clang -D_THREAD_SAFE -g -O2 -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include -Wdeclaration-after-statement -L/usr/local/Cellar/unixodbc/2.3.2/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib -o fisql fisql.o terminal.o edit.o

error LNK2019 unresolved external symbol dbbind referenced in function

允我心安 提交于 2019-12-11 12:09:17
问题 I'm trying to compile tds_fdw for Windows 64bit using Visual Studio Community 2017, but I'm getting the errors below. The C/C++ Additional Include Directories are: E:\Downloads\FreeTDS-1.00-x86\freetds-1.00\include C:\Apps\postgres\pgsql-10.0\include\server\port\win32_msvc C:\Apps\postgres\pgsql-10.0\include\server\port\win32 C:\Apps\postgres\pgsql-10.0\include C:\Apps\postgres\pgsql-10.0\include\server E:\Workspace\git\tds_fdw\include %(AdditionalIncludeDirectories) The Linker Input has

How to define a driver for tclodbc?

天涯浪子 提交于 2019-12-11 11:04:37
问题 I want to use tclodbc from Linux environment to connect to a MS SQL server. I have the driver (freeTDS) and the connection string. But I don't know how to configure the driver to be used by tclodbs. There is a command database configure operation driver attributes But I don't know what to put as operation and attributes , and whether this is the right command. Related to my question: Accessing Microsoft SQL Server from Tcl running on GNU/Linux 回答1: OK, here's my take based on these guides

FreeTDS Mac OS X MiniPortile

邮差的信 提交于 2019-12-11 04:43:21
问题 I'm trying to install FreeTDS on Max OS X Lion and came across the MiniPortile GitHub repository. https://github.com/luislavena/mini_portile I'm trying to install FreeTDS so that I can use the sqladapter https://github.com/rails-sqlserver/tiny_tds The instructions on the sqladapter github say to clone the mini_portile repo then just do: $ bundle install $ rake compile $ rake native gem $ gem install pkg/tiny_tds-X.X.X-#{platform}.gem I don't understand how to use the library. I tried cloning