odbc

create mysql odbc connection through batch script

戏子无情 提交于 2019-12-11 17:17:18
问题 Is there anyway to create a System DSN enter for MYSQL database (windows OS), with silent installation of MySQL ODBC Drivers programatically either through batch script or any other language? If drivers installation is not possible , atleast automatic DSN entery would be helpful. Thanks, 回答1: On the command line, run odbcconf.exe with appropriate parameters. For example ODBCConf ConfigSysDSN "SQL Server" "DSN=LocalODBCConnection|SERVER=(local)" for MySQL ODBCConf ConfigSysDSN "MySQL" "DSN

How to setup 64-bit ODBC data source in UiPath?

徘徊边缘 提交于 2019-12-11 15:37:48
问题 I am trying to set up a 64-bit ODBC data source connection in UiPath, but it's not visible and only showing 32-bit data sources. Is it because UiPath is a 32-bit software? Please suggest an alternate workaround. 回答1: A 32-bit application can only load 32-bit ODBC drivers. Your options are to -- find a 64-bit version of your "UiPath" application find a 32-bit version of the 64-bit "Oracle in XE" driver find a 32-bit ODBC Driver for 64-bit ODBC Data Sources (such as this, from my employer,

NESTED INNER JOIN using MS Access 2003 via ODBC

若如初见. 提交于 2019-12-11 15:19:08
问题 If this works: SELECT COUNT(t1.ID) AS count FROM Project t1 INNER JOIN (SELECT DISTINCT t.Site,t.id FROM _Equipment_id t WHERE t.OEM LIKE '%ABC%') t2 ON t1.Site=t2.Site AND t1.id=t2.id and this works: SELECT COUNT(t3.ID) AS count FROM Wall t3 INNER JOIN Project t1 ON t3.Project_number=t1.Project_number Why doesn't this work: SELECT COUNT(t3.ID) AS count FROM Wall t3 INNER JOIN Project t1 ON t3.Project_number=t1.Project_number INNER JOIN (SELECT DISTINCT t.Site,t.id FROM _Equipment_id t WHERE

With CDatabase, can I send SQL without using CRecordSet?

爱⌒轻易说出口 提交于 2019-12-11 14:58:25
问题 When using the MFC class CDatabase to connect to a data source, is there any way to execute SQL statements without having to open a CRecordSet object? I ask because CRecordSet::Open() appears to throw an exception when I use it to call stored procedures that don't return anything - and there's no reason to expect results from, say, sp _ delete _ row. 回答1: I use CDatabase::ExecuteSQL() CDatabase database; //database is connected somewhere database.ExecuteSql("Drop table [users]"); // sql

PHP Cannot connect to PDO ODBC Driver

大城市里の小女人 提交于 2019-12-11 14:44:10
问题 My php cannot find my odbc driver. I've downloaded and re-installed multiple times. Can anyone help me with this error: QLSTATE[IM002] SQLDriverConnect: 0 [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified" Here is my php code: $dbName = "C:\Users\David\Documents\SCHOOLNEW\Assignment5-PROG1800\database\as4.mdb"; if (!file_exists($dbName)) { die("Could not find database file."); } try { // Connect $dbh = new PDO("odbc:Driver={Microsoft Access Driver(*

GetSchema(“Databases”) on ODBC connection (C#)

梦想的初衷 提交于 2019-12-11 14:22:10
问题 I am testing various DB connection methods in C#. In particular, I am testing SqlConnection and OdbcConnection classes; my DB is SQLServer Express ( .\SQLEXPRESS ). Both are working reasonably well, except in listing available databases on the server. In my test code I use a "generic" DbConnection object and a simple factory to create an instance of specific SqlConnetion and OdbcConnetion subclasses (they both derive from DbConnection ): DbConnection connection; switch (connection_type) {

setAttribute to PDO using ODBC Driver?

落花浮王杯 提交于 2019-12-11 14:19:27
问题 i am trying to set some attributes to my pdo connection, i am using the odbc drvier that is connecting to SQL Server and i get unknown attribute $db = new PDO("odbc:Driver={SQL Server};Server=127.0.0.1;Database=my_db;charset=utf8; Uid=my_usser;Pwd=my_pass;"); $db->setAttribute(PDO::ATTR_EMULATE_PREPARES, false); print_r($db->errorinfo()); //It show me: Array ( [0] => 00000 [1] => 0 [2] => Unknown Attribute (setAttribute[0] at (null):0) [3] => IM001 ) I want to set PDO::ATTR_EMULATE_PREPARES

odbc_prepare for procedure with datetime input parameters

末鹿安然 提交于 2019-12-11 13:45:12
问题 Somewhat new to odbc_prepare statements and am having an issue when trying to execute a stored procedure that requires datetime input parameters. If I am to execute using odbc without using the prepared statement as displayed below I have no issue... $dblink = db_connect(); $query = "EXEC dbo.[ProcedureName] '" . $dateinput . "'"; odbc_exec($dblink, $query); Using the odbc_prepare I'm getting an error (only for procedures with DateTime inputs parameters). Example below... function execute_db(

WAMP php ODBC Connection 'Warning'

巧了我就是萌 提交于 2019-12-11 13:44:16
问题 I have a problem with ODBC in php (WAMP Server 2.5, PHP 5.5.12). When I try to run: $conn = odbc_connect("odbc_dsn", "user", "pwd"); if ($conn) { echo "Connection established."; } else { exit("Connection could not be established."); } I get a Warning: Warning: odbc_connect(): in C:\wamp\www\Concepts\index.php on line 29 Connection could not be established. If I change the "odbc_dsn" to something else (that doesn't exist) like "fdbasdf" then I get: Warning: odbc_connect(): SQL error:

Informix connection works through Windows, but not through Cygwin

余生颓废 提交于 2019-12-11 13:41:41
问题 Not really sure where to go with this one. I have a PHP script that invokes a PERL script that connects to an Informix database. This setup works just fine when I run the script to the Windows cmd prompt, but when I attempt to run it through cron in cygwin it fails on [Informix][Informix ODBC Driver]Unable to load translation shared library (DLL). (SQL-IM009) I have tried adding the Informix bin directory (/cygdrive/c/Program\ Files\ (x86)/IBM/Informix/Client-SDK/bin) to the PATH variable in