odbc

Rails use MS SQL server database

倖福魔咒の 提交于 2019-12-06 04:40:47
问题 In my rails app, I need to use an existing MS SQL database. I have tried following this manual: http://rubyrailsandwindows.blogspot.com/2008/03/rails-2-and-sql-server-2008-on-windows_24.html I do not know how to do models, scaffolds, etc because rails cannot simply use another db. I didn't want to run rake db:migrate for my tables in the MS SQL database. What else do I need to write in the model? If simple: use tables from the MS SQL server's database, but I also want to solve problem with

Set connection settings with Pyodbc + UnixODBC + FreeTDS

不想你离开。 提交于 2019-12-06 04:34:53
I have a setup using Pyodbc, UnixODBC and FreeTDS, but somewhere in there some options are being set and I don't know where. According to SQL Server Management Studio, my program is sending some settings when it opens the connection: set quoted_identifier off set ansi_padding off set ansi_nulls off ... But I need a different set of settings: set quoted_identifier on set ansi_padding on set ansi_nulls on ... Is there any way to change this? If I can't do it with my current setup, are there any other libraries I could use in Python that would let me change it (preferably using the Python

Querying database schema of SQL Server DB via ODBC?

吃可爱长大的小学妹 提交于 2019-12-06 04:30:57
Is there a generic way to retrieve a database schema using ODBC that works across databases? If not, what is the easiest way to do this when the database server is MS SQL Server? I am working with unixodbc, from Linux. Query against the INFORMATION_SCHEMA views. Beautiful thing about using information schema is that it's a standard so it should be portable to any database that has implemented the standard. e.g. SELECT * FROM INFORMATION_SCHEMA.COLUMNS ISC The standard is the SQL-92 Starts at page 535 If you want to get a list of the schema's in the database, you can use the wildcard in the

How to load SQL data into the Hortonworks?

十年热恋 提交于 2019-12-06 04:11:44
问题 I have Installed Hortonworks SandBox in my pc. also tried with a CSV file and its getting in a table structerd manner its OK (Hive + Hadoop), nw I want to migrate my current SQL Databse into Sandbox (MS SQL 2008 r2).How I will do this? Also want to connect to my project (VS 2010 C#). Is it possible to connect through ODBC? I Heard sqoop is using for transferring data from SQL to Hadoop so how I can do this migration with sqoop? 回答1: You could write your own job to migrate the data. But Sqoop

PHP PDO ODBC connection

烈酒焚心 提交于 2019-12-06 03:58:38
问题 we are trying to create a connection with our SQL database trough ODBC in PHP. This is our current script: $cnx = new PDO("odbc:Driver={EFR};Server=localhost;Port:7004;Database=EFR;Uid=LcLfVJFLTKTCEHRO;Pwd=*********;"); The driver is working in Qlikview which also connects to this database. The driver is actually being found by PHP, but we think it just can't login. PHP is returning the following error: Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[IM001]

C++ SQLBindParameter

痴心易碎 提交于 2019-12-06 03:48:26
问题 Here are the declarations of the variables: string strFirstName; string strLastName; string strAddress; string strCity; string strState; double dblSalary; string strGender; int intAge; ...Do some "cin" statements to get data... retcode = SQLPrepare(StatementHandle, (SQLCHAR *)"INSERT INTO EMPLOYEE ([FirstName], [LastName], [Address], [City], [State], [Salary], [Gender],[Age]) VALUES (?,?,?,?,?,?,?,?)", SQL_NTS); retcode = SQLBindParameter(StatementHandle, 1, SQL_PARAM_INPUT, SQL_C_CHAR, SQL

“Unable to complete network request” or “connection rejected” for Firebird, on just one machine

安稳与你 提交于 2019-12-06 03:22:23
问题 I've got a seemingly unique issue on just one computer in the company (had to be my boss's). I've got a program from Borland C++ that uses a TSQLConnection . It connects to a local Firebird server 2.1.1.17910 running as an application. The other computers work fine. It will absolutely not connect on this one lappy (local server) for anything . I remember he always had trouble with InterBase when it was installed as well. I think he installed up to 7.5 possibly. It's gone now and I went

Connect to MySQL database and fetch data in Julia

百般思念 提交于 2019-12-06 02:55:37
问题 How can I fetch data from MySQL database in Julia? It looks like this package provides tools for connecting to any database, including MySQL. However, it looks like assuming I have to first setup ODBC DSN to connect to it (I don't know what it is in the first place, although I've used MySQL for two years). So I tried to configure it by reading this page at MySQL documentation... but hit the wall immediately. One, I can't find a command named myodbc-installer in my OS X 10.8.5. Two, there is

SQL Server backend and Access frontend - ODBC Connection to SQL Server native client failed

℡╲_俬逩灬. 提交于 2019-12-06 02:39:04
I have a SQL Server 2008 database as a back end and Access as a front end. Is it required to have SQL Server Management Studio installed for Access to connect to the SQL database. The SQL database is on a server not on my local machine. I just reconfigured my computer and have not installed SQL Server Management Studio yet. I was trying to open the database in Access but I get this error message saying: ODBC Connection to SQL Server Native Client10.0 " Server name " failed. So how can I get Access to connect to the SQL Server database without having SQL Server management studio? paqogomez Its

MS-Oracle ODBC Driver Function Sequence Error

て烟熏妆下的殇ゞ 提交于 2019-12-06 02:29:33
I'm using the Microsoft-Oracle ODBC Driver to access an Oracle database in MS Access, but on about half of my linked tables, I get a [Function Sequence Error] whenever I try to pull up the Datasheet view. I've looked around for alternative drivers, but no luck. Does anyone know how to stop getting these function sequence errors? And if I need a new driver, could you provide a link if possible to a download site? Thanks I figured it out. The problem was that the Microsoft-Oracle ODBC driver mistakenly converted Oracle's CLOB (Character Large Object) fields into mere Text[255 char] fields in