tiny-tds

Tiny_tds: Connect: Server name not found in the configuration files

一笑奈何 提交于 2019-12-05 21:57:06
require "rubygems" require "tiny_tds" client = TinyTds::Client.new(:username => 'sa', :password => '', :host => 'RICHARD_PC\SQLEXPRESS') result = client.execute("SELECT * FROM [Contacts]") result.each do |row| //Do something end I keep getting the same error: " Connect: Server name not found in the configuration files ". All I need to do is to be at least be able to connect with Sql Server. So if the host is not the sqlexpress instance installed on my machine, what is it then? In the Github website it said this host => 'mydb.host.net' (:host - Used if :dataserver blank. Can be an host name or

Unable to `gem install tiny_tds` OS X Mavericks

為{幸葍}努か 提交于 2019-12-05 17:00:47
The Error $ sudo gem install tiny_tds Building native extensions. This could take a while... 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 checking for iconv_open() in iconv.h... no checking for iconv_open() in -liconv... yes checking for sybfront.h... yes checking for sybdb.h... yes checking for tdsdbopen() in -lsybdb... no HomeBrew The above error occurs even after a $ brew install freetds Manual Installation $ tar zxf freetds-stable.tgz $ cd freetds-0.91 $ ./configure $ make $

Failing to bundle install tiny_tds on Mac OS X 10.8 with Homebrew FreeTds

こ雲淡風輕ζ 提交于 2019-12-04 18:31:39
问题 MY QUESTION What are some surefire steps I can take to 100% get this working? I would need real instructions, not one liner answers or vague conceptual descriptions of the process. Let's get to the bottom of this. It would appear that there are conflicts somewhere and I've had subpar assistance from the gem developer on GitHub in relation to my experience with Ruby / Rails / Bundler / Homebrew so it's not completely their fault :P But I need to figure out how to get this working ASAP so here

Failing to bundle install tiny_tds on Mac OS X 10.8 with Homebrew FreeTds

核能气质少年 提交于 2019-12-03 12:14:49
MY QUESTION What are some surefire steps I can take to 100% get this working? I would need real instructions, not one liner answers or vague conceptual descriptions of the process. Let's get to the bottom of this. It would appear that there are conflicts somewhere and I've had subpar assistance from the gem developer on GitHub in relation to my experience with Ruby / Rails / Bundler / Homebrew so it's not completely their fault :P But I need to figure out how to get this working ASAP so here goes with my current state of this problem. UPDATE: 2/25/2013 Updated GCC / XCODE Version 4.6 (4H127)

TinyTds Error: Adaptive Server connection timed out

让人想犯罪 __ 提交于 2019-12-01 08:08:31
We are running a ruby on rails application on rails 3.2.12 (ruby 1.9.3) with current tinyTDS gem 0.6.2. We use MS SQL 2012 or 2014 and facing more then usual the following error message: TinyTds::Error: Adaptive Server connection timed out: EXEC sp_executesql [...] Database AUTOCLOSE is off. TCP Socket Timeouts are default Windows system. Application server is on machine #1 (windows server), SQL server is on machine #2 (windows server). When I check the connections (netstat) I have like 250 connections open for around 20-30 users. I run perform.exe to see idle time on SQL server for the data

TinyTds Error: Adaptive Server connection timed out

两盒软妹~` 提交于 2019-12-01 05:36:14
问题 We are running a ruby on rails application on rails 3.2.12 (ruby 1.9.3) with current tinyTDS gem 0.6.2. We use MS SQL 2012 or 2014 and facing more then usual the following error message: TinyTds::Error: Adaptive Server connection timed out: EXEC sp_executesql [...] Database AUTOCLOSE is off. TCP Socket Timeouts are default Windows system. Application server is on machine #1 (windows server), SQL server is on machine #2 (windows server). When I check the connections (netstat) I have like 250