odbc

How to create a new ODBC connection to one remote SQL Server

笑着哭i 提交于 2019-12-11 10:36:22
问题 I'm trying to run an application that I've developped recently. This one uses an ODBC connection to browse a defined database. I'm trying to execute this app from a remote computer. Using VMWare, I've created a new Windows 7 environment and connected on. After that I've tried to create a new System DSN , but, when I set the logins that I'm using to connect on my local SQL Server 2008 I get Connection failed: SQLState: '28000' SQL Server Error: 18452 [Microsoft][ODBC SQL Server Driver][SQL

How can I update multiple tables with one query using Access ODBC?

随声附和 提交于 2019-12-11 09:47:48
问题 I've done a thorough search but can't find an answer to this question. I connect with Access ODBC and need to run a query which updates many tables at the same time based on one value. Here's what I'm doing at the moment: $DSN="accessodbc"; $DSN_User="myusername"; $DSN_Passwd="mypassword"; $objConnect = odbc_connect( $DSN, $DSN_User, $DSN_Passwd ); $strSQL1="UPDATE table1 SET column1='dup' WHERE User=" . $user; $strSQL2="UPDATE table2 SET column1='dup' WHERE User=" . $user; $strSQL3="UPDATE

“Requested conversion is not supported” using a linked server and ODBC

試著忘記壹切 提交于 2019-12-11 09:46:10
问题 Our web application stores UTF-8 encoded data in VARCHAR fields. Recently, we have provided our customers access to this data via ODBC using DataDirect's OpenAccess ODBC driver. This is achieved using DataDirect's OpenAccess SDK, writing a C# .Net class to interface with the service. We only allow customers to perform SELECT queries. We also limit results to 100K rows at this time. This solution really works great, except querying fields with some of this encoded data appeared as gibberish to

Allocate buffer dynamically for DB query according to the record actual size

戏子无情 提交于 2019-12-11 09:45:36
问题 I am using a Perl 5.8.3 script to query Oracle 11g database. The connection is established with ODBC Extension for Win32: http://search.cpan.org/~gsar/libwin32-0.191/ODBC/ODBC.pm As you can see in the documentation (link), the buffer size is limited to 10K. This size of the buffer is not sufficient in some cases (i.e. too small). Excerpt from the link above: “The amount of memory that is allocated to retrieve the field data of a record is dynamic and changes when it need to be larger.” I have

How to connect R with PostgreSQL on OSX 10.10.2?

十年热恋 提交于 2019-12-11 09:45:06
问题 I have the following setup: OSX 10.10.2 PostgreSQL 9.4.1 R 3.1.3 This answer as of 2011 says that the easiest approach is to use RpgSQL package. But it is removed from the CRAN repository. RODBC mentioned there is available as source, but it fails to configure: configure: error: "ODBC headers sql.h and sqlext.h not found" ERROR: configuration failed for package ‘RODBC’ I've also found another package, which could help me - RPostgreSQL, but it fails to compile: In file included from RS

New Microsoft ODBC Driver 17 breaks LAMP server

百般思念 提交于 2019-12-11 09:25:53
问题 CentOS 7 Just started using the ODBC Driver 13 and it worked great. A couple of weeks ago version 17 came out and creates conflicts with PHP drivers looking for version 13 with a fresh install . With a new CentOS 7 install I installed 13 explicitly but when I try to install php_sqlsrv it trys to update msodbcsql to 17 (and fails but I didnt want it anyway). How can I install version 13 with the correct php driver? Thanks, Loom 回答1: Turns out php_sqlsrv 4.3.* (current stable) install will try

Connecting cassandra to Tableau Software

≯℡__Kan透↙ 提交于 2019-12-11 09:17:22
问题 I want to connect Tableau software to my cassandra database. Note that i'm using tableau in windows7 and cassandra in ubuntu (Virtual machine). For this i've installed the Cassandra ODBC (and Simba cassandra ODBC but i got the same problem). I got a connexion succes and i found my keyspace but not my tables !!!!!! But no table in "cim" keyspace !! Note that in my keyspace "cim" i have 3 tables that i can request with any problem in cassandra. Is there something i should do before creating the

Hibernate get Connection object for JasperRunManager

霸气de小男生 提交于 2019-12-11 08:27:11
问题 I'm using Hibernate 3.2.5 in a project and Jasper 3.7.2 to generate Some Reports for the application. Is there any way to get a Connection Object from a HibernateSessionFactory Object? I wanna handle only one connection, because at this time I have to have a properties file for the ODBC connection that is gonna handle the Jasper through the JasperRunManager statics methods, and also Hibernate for other side. This is the method I need to pass the connection: byte[] net.sf.jasperreports.engine

OdbcConnection.GetSchema(“TABLES”); not working

元气小坏坏 提交于 2019-12-11 08:18:52
问题 I am guessing that not all SQL is created equally. I am diving into the world of DSNs and ODBC drivers in c# and having a bit of a go at it. I am trying to get all the tables in a database that is defined by a DSN that all I know about it is using a Transoft ODBC driver. I can connect to it and get back tables using the code: public void ConnectToData(String dsn) { System.Data.Odbc.OdbcConnection conn = new System.Data.Odbc.OdbcConnection(); //conn.ConnectionString = "FIL=MS Access;DSN=" +

Custom Model - “no such file to load — odbc”

ぐ巨炮叔叔 提交于 2019-12-11 07:50:15
问题 I'm trying to create a custom model to interface with a database that isn't supported navtively by Rails or through the OpenLink ODBC driver. For some reason, I'm getting the following error: no such file to load -- odbc I'm at a lost as to why this is occurring as the ruby-odbc gem is in the GEM_PATH and I have a small script that tests this to ensure that the connection works and it worked perfectly. Does Rails ignore the gem_path? Is there something else I need to configure? I checked the