odbc

ms access; how to move it into inaccessible state / DSN-less table without password

断了今生、忘了曾经 提交于 2019-12-02 16:09:20
问题 I tried to import tables from an already opened MS Access accdb file into a new accdb file using the built in import menu, but I got an error message. The error message said that the "admin" user has set the file in an inaccesible state. (this is my translation from hungarian) So I was not able to import any table or query. I would like to know, how to move an accdb or accde file into this inaccesible state programmatically, using VBA code. Reason behind: I would like to distribute a front

How do I use a 32-bit ODBC driver on 64-bit Server 2008 when the installer doesn't create a standard DSN?

末鹿安然 提交于 2019-12-02 15:37:13
I ran into an issue with some third party software that we use to track software license usage in our computer labs. We recently migrated the app to 64-bit Server 2008 after receiving assurances from the company that it was compatible and running some preliminary tests that showed that the app worked in the 64-bit environment. Unfortunately the person doing the testing didn't test the functionality of a couple of apps that I have that rely on accessing the data to do both live- and post-processing on the data to produce some reports. Turns out that the application doesn't have a 64-bit ODBC

Data type mismatch in criteria expression using Access via ODBC

我怕爱的太早我们不能终老 提交于 2019-12-02 14:44:41
问题 $conn=odbc_connect('mobshopDB','',''); if(!$conn){ exit("Connection Failed: " . $conn); } $query="INSERT INTO users(uid,pass,fname,lname,pmm) VALUES('$username','$password','$fname','$lname',$pmm)"; $rs=odbc_exec($conn,$query); this query gives me this error Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression., SQL state 22005 in SQLExecDirect in C:\Program Files\EasyPHP-5.3.6.0\www\mobshop\registered.php on

ODBC .DBF Files in C#

六月ゝ 毕业季﹏ 提交于 2019-12-02 14:26:14
问题 I am having a lot of trouble using .dbf files. I have an application written in C# that reads from .DBF files and then exports them to another database. I've tried using the Microsoft dBase driver but it's not reading all of the .DBF files that I need to, meaning that I can retrieve data from only two of the five .DBF files, Visual Studio is telling me the other .DBF files don't exist and it keeps saying the my input string is too large. There are some Microsoft Visual Fox Pro drivers but

Tracing ODBC calls for Informix Client for Linux

痞子三分冷 提交于 2019-12-02 13:25:03
问题 I tried to trace ODBC function calls from my program working on Linux. This program dynamically links ODBC manager and then connect to database and fetch some data. I can trace ODBC calls with unixODBC by adding to odbcinst.ini: [ODBC] Trace=yes TraceFile=/tmp/sql.log This method is documented by IBM: Collecting data for an ODBC Problem But when I change manager from unixODBC to Informix's own manager (libifdmr.so), the trace file is not created. Anybody successfully obtained ODBC trace from

PHP UTF8 not displaying chinese characters properly

谁说胖子不能爱 提交于 2019-12-02 13:11:29
I am trying to echo a chinese word in php from a table data but it seems it is not displaying properly Here's my code <?php echo'<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-Hans" lang="zh-Hans"> '; ?> <head> <title>A Test Page</title> </head> <body> <?php //Insert connection string require_once 'confx/confx.php'; $ID = 222; $conn = odbc_connect($odbc_dsn, $odbc_usr, $odbc_pwd); if(!$conn) { die('Epic Fail!'); } $query = odbc_exec($conn

android jdbc odbc connection

百般思念 提交于 2019-12-02 11:24:16
问题 i want to connect odbc connection to my android application. my database is oracle 10g. Here in my code my table name is world. After compiling my program and close the emulator open table in oracle database the values could not be stored The same coding i compiled normal javac compiler in cmp prompt the values should be stored, if i compiling in android application in eclipse ide the values could not be stored.Pls give one solution or any changes in my code Thanks in advance package com.odbc

Qt application crashing when using ODBC driver (macOS)

霸气de小男生 提交于 2019-12-02 10:46:20
My Qt application is crashing when i use ODBC driver to connect to Oracle database. The issue is a stack overflow. My code is #include "mainwindow.h" #include <QApplication> #include <QSqlDatabase> #include <QDebug> #include <QSqlError> int main(int argc, char *argv[]) { QApplication a(argc, argv); QSqlDatabase db= QSqlDatabase::addDatabase("QODBC3"); db.setUserName("SYS"); db.setPassword("oracle"); if (!db.open()) { qDebug() << db.lastError().text(); } else { qDebug("success"); } MainWindow w; w.show(); db.close(); return a.exec(); } The error that appears : error I'm sure that there's no

mssql and left join duplicate records

一曲冷凌霜 提交于 2019-12-02 10:11:50
Original Query SELECT DISTINCT IP.op_code as ip_op_code, IPH.op_code as iph_op_code, debt_trans.tx_amount as cash, DT.tx_amount as revenue FROM debt_trans LEFT JOIN debt_trans DT ON DT.debt_code=debt_trans.debt_code LEFT JOIN instplan IP ON IP.debt_code=debt_trans.debt_code LEFT JOIN instplanheader IPH ON IPH.debt_code=debt_trans.debt_code AND debt_trans.tran_code NOT IN ('DR3001','DR3002','DR3003','DR3004','RP1800','CC5000') AND debt_trans.tx_amount > 0 AND debt_trans.tx_date >= '2019-02-04' AND debt_trans.tx_date <= '2019-02-04' AND IP.ipactualpaymentamt > 0 AND IP.tran_code NOT IN ('DR3001'

Shutdown MSSQL server from perl script DBI

杀马特。学长 韩版系。学妹 提交于 2019-12-02 09:46:29
I'm writing a perl script in which I've to shutdown my mssql server ,do some operation and then I've to restart it.I know 1 way is to use netstat to stopt the service but I cann't use that. So I tried installing DBI and DBD::ODBC module.I'm able to connect and execute queries by following code use DBI; my $data_source = q/dbi:ODBC:AUTOMATION_WOW64/; my $user = q/pa/; my $password = q/DCE/; # Connect to the data source and get a handle for that connection. my $dbh = DBI->connect($data_source, $user, $password) or die "Can't connect to $data_source: $DBI::errstr"; my $str=$dbh->prepare("select