odbc

Using MS Access & ODBC to connect to a remote PostgreSQL

蓝咒 提交于 2019-12-04 12:02:48
问题 I currently have an MS Access application that connects to a PostgreSQL database via ODBC. This successfully runs on a LAN with 20 users (each running their own version of Access). Now I am thinking through some disaster recovery scenarios, and it seems that a quick and easy method of protecting the data is to use log shipping to create a warm-standby. This lead me to think about putting this warm-standby at a remote location, but then I have the question: Is Access connecting to a remote

Programmatically change the connection of a linked table in ms access

放肆的年华 提交于 2019-12-04 09:59:33
I have already referenced other pages for my problem but I still can't get this to work. I feel a bit slow given that I have three examples below and still can't figure this out. Changing linked table location programatically Linked table ms access 2010 change connection string Update an Access linked table to use a UNC path Here is the code that I am using: Dim tdf As TableDef Dim db As Database Set db = CurrentDb Set tdf = db.TableDefs("DeviceListT") tdf.Connect = "ODBC;DATABASE=" & CurrentProject.path _ & "\HarmonicProfileDatabase_be.accdb" tdf.RefreshLink The problem is that when I run it

How to load SQL data into the Hortonworks?

不打扰是莪最后的温柔 提交于 2019-12-04 09:46:50
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? You could write your own job to migrate the data. But Sqoop would be more convenient. To do that you have to download Sqoop and the appropriate connector, Microsoft SQL

Using Rails 2.x with MS SQL Server 2005

倾然丶 夕夏残阳落幕 提交于 2019-12-04 09:42:42
问题 Does anybody here have positive experience of working with MS SQL Server 2005 from Rails 2.x? Our developers use Mac OS X, and our production runs on Linux. For legacy reasons we should use MS SQL Server 2005. We're using ruby-odbc and are running into various problems, too depressing to list here. I get an impression that we're doing something wrong. I'm talking about the no-compromise usage, that is, with migrations and all. Thank you, 回答1: Have you considered using JRuby? Microsoft has a

Connect to SQLite using ODBC without register database

╄→гoц情女王★ 提交于 2019-12-04 09:41:28
问题 Is it possible to connect to SQLite in C++ and using ODBC API without register the database in ODBC? I have code that uses ODBC talking to databases and don't want to rewrite for using SQLite and don’t want to register new ODBC connections. 回答1: you should be able to do it without any code changes using sqliteodbc. 回答2: Short answer, use one of the following connection strings: Driver=SQLite ODBC Driver;Database=full-path-to-db;... Driver=SQLite3 ODBC Driver;Database=full-path-to-db;... Long

PHP PDO ODBC connection

心已入冬 提交于 2019-12-04 09:02:50
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] SQLDriverConnect: 0 No transaction control system' in C:\Program Files (x86)\EasyPHP-12.1\www\index.php:2 Stack

C++ SQLBindParameter

为君一笑 提交于 2019-12-04 08:38:51
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_LONGVARCHAR, 50, 0 &strFirstName,0, NULL); retcode = SQLBindParameter(StatementHandle, 2, SQL_PARAM

Logging ODBC, SQL Server

点点圈 提交于 2019-12-04 08:16:04
How to log, trace or get queries that an application send to Microsoft SQL Server 2008 thru ODBC driver (without modifying application...) Maybe it can be done with SQL Server itself or ODBC has some query logging? @davispuh, you can use the SQL Profiler to trace SQL statements. you can also use the ODBC Tracing . To Create a Trace using SQL-Profiler: On the File menu of SQL-Profiler, click New Trace, and connect to an instance of SQL Server. The Trace Properties dialog box appears. In the Trace name box, type a name for the trace. In the Use the template list, select a trace template on which

Is there a NoSQL / key-value store abstraction library like there is JDBC is for databases?

荒凉一梦 提交于 2019-12-04 08:07:47
I have used many SQL abstraction libraries, such as ODBC, JDBC, and ActiveRecord. What are the abstraction options in the NoSQL / key-value store world? I am mostly asking this so that if I choose a key-value store then I can use an abstraction library and not be locked in, which I think is important given the number of key value stores around. Even if the NOSQL databases are very different from each other, they can be divided into meaningful groups, see this blog post . A new project aiming at defining abstractions on top of different NOSQL databases is Gremlin, see InfoQ: Gremlin, a Language

Connect to MySQL database and fetch data in Julia

…衆ロ難τιáo~ 提交于 2019-12-04 07:45:24
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 no such application called ODBC Administrator , and instead there is ODBC manager in my system - So I