odbc

ruby(1.9.3) on rails(3.2.3) Activerecord-odbc-adapter

吃可爱长大的小学妹 提交于 2019-12-10 13:54:32
问题 I have a legacy database(Progress OpenEdge) that i need to use for a myriad of reports. I have everything working with ruby 1.8.6 and rails 2.0 (odbc-adapter and odbc-rails). Since 1.8.6 is not supported anymore and rails 2.0 is quite old i'd like to update. Is there a odbc-adapter supported on 3.2.3? Any input is appreciated. Thanks, 回答1: You have to put the following line in your gemfile: gem 'ruby-odbc' and then run bundle install. i think this is what you were looking for :) 回答2: I am

Replacement for JDBC-ODBC Bridge

ぐ巨炮叔叔 提交于 2019-12-10 13:45:39
问题 In Java 8 the JDBC-ODBC-Bridge will be removed. The typical error is: java.lang.ClassNotFoundException: sun.jdbc.odbc.JdbcOdbcDriver Do you know of a possible replacement? I found Easysoft. But this bridge required an additional server which not run inside the Java VM. It is a type 3 driver and not a type 1 driver. Are there other alternatives? 回答1: Another solution is to take the ODBC stuff from the 1.7 JRE and package it up into it's own JAR file. To do so (this is for Windows 64 but the

PHP PDO with SQL Server and prepared statements

非 Y 不嫁゛ 提交于 2019-12-10 13:27:39
问题 There are a number of similar questions to this already posted. However I have not found a way to get this code working. I am updating a PHP codebase from native MSSQL queries to use PDO, specifically to use ODBC. Here is the old code and two variations I have tried. Old style: Works, This produces an array of expected results. $db = mssql_connect('connection', 'user', 'password'); mssql_select_db('database', $db); $sp = mssql_init('procedure', $db); $param=1; $results=[]; mssql_bind($sp,'

pdo_parse_params error in pdo_odbc.so whenever PHP starts in Fedora 20

家住魔仙堡 提交于 2019-12-10 13:11:47
问题 I'm getting this error when I try to start PHP via command line: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_odbc.so' - /usr/lib64/php/modules/pdo_odbc.so: undefined symbol: pdo_parse_params in Unknown on line 0 Here are the PHP packages I have installed: php.x86_64 5.5.7-1.fc20 @updates php-ZendFramework.noarch 1.12.3-3.fc20 @updates php-bcmath.x86_64 5.5.7-1.fc20 @updates php-cli.x86_64 5.5.7-1.fc20 @updates php-common.x86_64 5.5.7-1.fc20 @updates

SQL0666 - SQL query exceeds specified time limit or storage limit

本秂侑毒 提交于 2019-12-10 12:50:55
问题 Periodically, I get this error message while making a call to a DB2 database using the Odbc connection string. I have tried setting the CommandTimeout of the DbCommand object to multiple values, but I still get the following error. SQL0666 - SQL query exceeds specified time limit or storage limit. Is there a trick to getting this to stop erroring out. It is very odd because the same query sometimes will work and sometimes will timeout. Any help would be appreciated. Thanks! 回答1: I have tried

Excel parameters from SQL Query from ODBC "Error - No Value given for one or more required parameters when using question mark `WHERE XXX = ?`

二次信任 提交于 2019-12-10 12:23:25
问题 I have an Excel file with an SQLOLEDB connection to a MS SQL server, When I do this with an Oracle link I can simply put WHERE XXX = ? in my query to prompt for values in Excel, however doing it with MSSQL I am getting the following error: No Value given for one or more required parameters When trying to parameterise a basic excel query from a value to ? If i use values like this I get results: SELECT * FROM srv.stats WHERE srv.stats.[year] = '2016' AND srv.stats.[quarter] = '1' When I add in

how to use ODBC binding for Dart

老子叫甜甜 提交于 2019-12-10 12:23:04
问题 I wanted to use the ODBC binding for DART this one in my app, I'm using ORACLE XE database, but did not get how to set it up, though I read the basic example in the read me :( Attached a print screen of my ORACLE XE ODB setup, suceed connection, and simple SQL statement, Appreciate to know the following: 1. Hoe to set-up my ODBC in DART, 2. How to get the same SQL statement executed. I wrote the below: void main() { // Allocate an environment handle. var hEnv = new SqlHandle(); sqlAllocHandle

connection data source Crystal report

荒凉一梦 提交于 2019-12-10 11:59:58
问题 How we can delete a second connection(ODBC) data source after adding a conntion OLEdb? Thanks. 回答1: You are not adding and deleting connections to Crystal reports. You are adding datasources. If you can see 2 connections there is a table, stored proc, view or command, which is using the second one. Update the connection to the new one for all datasources 来源: https://stackoverflow.com/questions/29366201/connection-data-source-crystal-report

IIS 7.5 using 32 bit driver instead of 64 bit

我的梦境 提交于 2019-12-10 11:52:41
问题 I am using IIS 7.5 on a Windows Server 2008 R2 machine to connect to a MySQL server through ODBC driver 3.51. When I developed the application in VS 2010, I created a 64 DSN (using c:\windows\sysWOW64\odbcad32.exe) for the connection and everything was going great. However when I have deployed the application on IIS, it is not using this DSN. So I created a 32 bit DSN. Now I am facing the problem of Arithmetic operation resulted in an overflow on every other page. Please help. How can make

MAMP: Adding ODBC or SQL Server support

与世无争的帅哥 提交于 2019-12-10 11:42:14
问题 I need to talk to a remote SQL Server 2000 database. I use MAMP locally and I would like to continue using it. However, I'm lost as to what I need to do to add support for talking to this database from PHP. It looks like either the ODBC or SQL Server functions in PHP will work, but those modules aren't installed by default. Can someone provide instructions on how to add support for either ODBC or SQL Server in MAMP? 回答1: Check this question out, looks like you need to get a driver for your