odbc

ODBC export to Excel fails under Windows 7, Windows 8.x and Windows 10

女生的网名这么多〃 提交于 2019-11-27 04:50:56
问题 I just created some code (at the bottom) from scratch that shows a simple Excel export. The code fails with an exception when database.OpenEx is called. The exception shown is: Reservierter Fehler (-5016); es gibt keine Meldung für diesen Fehler. Ungültiges Attribut für die Verbindungszeichenfolge. CREATE_DB Ungültiges Attribut für die Verbindungszeichenfolge. CREATE_DB Ungültiges Attribut für die Verbindungszeichenfolge. CREATE_DB Ungültiges Attribut für die Verbindungszeichenfolge. CREATE

PHP and Microsoft Access database - Connection and CRUD

孤人 提交于 2019-11-27 04:42:16
I have no experience with access. How to do update/insert/delete/select statement with and without $rs = new com("ADODB.RecordSet"); ? PDO If you want to interface with an MS Access database using PHP, PDO is available for you. <?php try { $pdo = new PDO("odbc:Driver={Microsoft Access Driver (*.mdb)};Dbq=C:\accounts.mdb;Uid=Admin"); } catch (PDOException $e) { echo $e->getMessage(); } When using PDO, due to the unified interface for DB operations, you have the opportunity to make your app more portable across various RDBMs systems. All you have to do is to provide the connection string to the

Can ODBC parameter place holders be named?

与世无争的帅哥 提交于 2019-11-27 03:53:15
问题 I did some searching and haven't found a definitive answer to my questions. Is there a way to define which ? in a SQL query belongs to which parameter? For example, I need to perform something like this: SELECT * FROM myTable WHERE myField = @Param1 OR myField2 = @Param1 OR myField1 = @Param2 OR myField2 = @Param2 The same query in ODBC is: SELECT * FROM myTable WHERE myField = ? or myField2 = ? or myField1 = ? or myField2 = ? Is there a way to tell the ODBC command which parameter is which

Execute Parameterized SQL StoredProcedure via ODBC

大兔子大兔子 提交于 2019-11-27 03:30:59
问题 From within a C# WinForms app I must execute a parameterized Stored Procedure on a MS SQL Express Server. The Database Connection works, the Procedure works either, but I get an Error Message: 42000: Missing Parameter '@KundenEmail' although I'm sure I added the parameter correctly. Maybe some of you could have a look - I don't know what to search for any more... OdbcConnection ODBCConnection = new OdbcConnection(); try { ODBCConnection.ConnectionString = ODBCConnectionString; ODBCConnection

How do I create an ODBC DSN entry using C#?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 03:27:57
I'm working on a legacy application that has a C++ extended stored procedure. This xsproc uses ODBC to connect to the database, which means it requires a DSN to be configured. I'm updating the installer (created using Visual Studio 2008 setup project), and want to have a custom action that can create the ODBC DSN entry, but am struggling to find useful information on Google. Can anyone help? I actually solved this myself in the end by manipulating the registry. I've created a class to contain the functionality, the contents of which I've included here: ///<summary> /// Class to assist with

JDBC driver MS Access connection

这一生的挚爱 提交于 2019-11-27 01:59:28
问题 I want connect my MS access file with Java GUI program,but I have problem with connection.... I have Windows 7 64b, and ms office 2007. When I opened the ODBC driver manager in the control panel I havent found any driver for Microsoft Access (maybe when I started the ODBC is started running the 64bit ODBC, now I think is running the 32bit ODBC. I read this and I make it : "jdbc-odbc connection for window 7 64 bit machine.. 1 . Right click Data source (ODBC)..go to properties change the

Fetching UTF-8 text from MySQL in R returns “????”

天涯浪子 提交于 2019-11-27 01:00:48
I'm stuck trying to fetch UTF-8 text in a MySQL database from R. I'm running R on OS X (tried both via the GUI and command line), where the default locale is en_US.UTF-8, and no matter what I try, the query result shows "?" for all non-ASCII characters. I've tried setting options(encoding='UTF-8') , DBMSencoding='UTF-8' when connecting via ODBC, setting Encoding(res$str) <- 'UTF-8' after fetching the results, as well as 'utf8' variants of each of those, all to no avail. Running the query from the command line mysql client shows the results correctly. I'm totally stumped. Any ideas why it's not

OLEDB v/s ODBC [duplicate]

独自空忆成欢 提交于 2019-11-27 00:30:15
问题 This question already has an answer here: what is the difference between OLE DB and ODBC data sources? 11 answers What is the difference between OLEDB and ODBC? When do I use which and how do I know what I am looking at is a OLEDB driver v/s an ODBC driver? 回答1: OLEDB and ODBC are two different database API's. ODBC is an older standard and is actually not specific to windows - you can get Unix-based ODBC libraries. OLEDB is a COM-based API for database connections. There is a driver for

Consistent method of inserting TEXT column to Informix database using JDBC and ODBC

拜拜、爱过 提交于 2019-11-26 23:30:54
问题 I have problem when I try insert some data to Informix TEXT column via JDBC. In ODBC I can simply run SQL like this: INSERT INTO test_table (text_column) VALUES ('insert') but this do not work in JDBC and I got error: 617: A blob data type must be supplied within this context. I searched for such problem and found messages from 2003: http://groups.google.com/group/comp.databases.informix/browse_thread/thread/4dab38472e521269?ie=UTF-8&oe=utf-8&q=Informix+jdbc+%22A+blob+data+type+must+be

Multiple insert statements in single ODBC ExecuteNonQuery (C#)

社会主义新天地 提交于 2019-11-26 23:29:45
问题 I'm inserting multiple rows into a DB, and joining them together in an attempt to improve performance. I get an ODBCException telling me my SQL syntax is wrong. But when I try it in the mysql commandline client, it works just fine.. I ran a simplified test to describe the process. Command Line Client: mysql> create table test (`id` int, `name` text); Query OK, 0 rows affected (0.05 sec) mysql> INSERT INTO test(id, name) VALUES ('1', 'Foo');INSERT INTO test(id, name) VALUES ('2', 'bar'); Query