odbc

How to increase performance for bulk INSERTs to ODBC linked tables in Access?

时光总嘲笑我的痴心妄想 提交于 2019-11-26 19:06:59
I have CSV and TXT files to import. I am importing the files into Access and then inserting the records into a linked Oracle table. Each file has around 3 million rows and the process is taking a long time to complete. Importing into Access is very fast, but inserting into the linked Oracle table is taking an extremely long time. Here is the process I am currently using: DoCmd.TransferText acImportFixed, "BUSSEP2014 Link Specification", "tblTempSmartSSP", strFName, False db.Execute "INSERT INTO METER_DATA ([MPO_REFERENCE]) SELECT MPO_REFERENCE FROM tblTempSmartSSP;"` tblTempSmartSSP is an

'PDOException' with message 'SQLSTATE[22001]: String data, right truncated: 0

只谈情不闲聊 提交于 2019-11-26 18:25:57
问题 NOTE: I have narrowed this problem down to specifically PDO because I am able to successfully prepare and execute statements using the odbc_* functions. Why can't I bind this parameter to the PDO prepared statement? This works: $mssqldriver = 'ODBC Driver 13 for SQL Server'; $pdoDB = new PDO("odbc:Driver=$mssqldriver;Server=$hostname;Database=$dbname", $username, $password); $pdoDB->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION ); $sql = "SELECT 'value' AS col where 'this' = 'this'"

Linux - PHP 7.0 and MSSQL (Microsoft SQL)

旧时模样 提交于 2019-11-26 17:59:17
问题 Yes, I know that PHP 7.0 removed the extensions needed to connect to MSSQL. FreeTDS was my option prior to PHP 7.0 but now there really is no obvious upgrade path for those needing to still connect to MSSQL. Stupid question, but given that MSSQL is most certainly well used in enterprise environments, how are we supposed to connect to those databases beginning with PHP 7.0? Am I overlooking something blatantly obvious or did the release of PHP 7 basically give a slap in the face to anyone

ERROR : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

倾然丶 夕夏残阳落幕 提交于 2019-11-26 17:49:10
问题 While connecting .net to sybase server I got this error message: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified This has worked properly before. System DSN with same details work and data connection through vs.net also work. I am using vs.net 2005. Any suggestions? 回答1: If you're working with an x64 server, keep in mind that there are different ODBC settings for x86 and x64 applications. The "Data Sources (ODBC)" tool in the Administrative Tools

What is the best way to synchronize data between MS Access and MySQL?

亡梦爱人 提交于 2019-11-26 17:16:18
问题 I have an access database on a windows machine, which I must import into mysql on a linux webserver. At the moment the access dabatbase table is exported as a text file, automatically copied with ftp, and then loaded into mysql. Is there a better way to do this, perhaps using an ODBC connection or something else? What is the best way to limit copying information that is already present, ie to only transfer records that are in the access database but not yet in the mysql one. The access

java.sql.SQLException: No database selected - why?

╄→гoц情女王★ 提交于 2019-11-26 17:13:45
问题 the last days I was trying to learn how to access mySQL databases via Java. I am able to load the driver and get a connection to the database ( at least I think so, since I don't get an exception there..) the code is: import java.sql.*; public class test { public static void main(String[] args) { try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); System.out.println("driver loaded..."); } catch(ClassNotFoundException e){ System.out.println("Error in loading the driver..."+e); System.exit(0);

Is there a Windows 7 ODBC driver for Access?

跟風遠走 提交于 2019-11-26 17:04:17
问题 I have an existing PHP script that needs to work with data from an Access db, and the machine it's on is migrating from Win2K to Windows 7. I looked around, and Microsoft seems to say that this is still available somewhere , but I can't find any solid information about how to actually get it. It is not an option to migrate this to another db at the moment because of other dependencies. 回答1: Use odbcad32.exe under %WINDIR%\SYSWOW64, you will find all the 32bit drivers enumerated. I'm sure MS

what is the difference between OLE DB and ODBC data sources?

左心房为你撑大大i 提交于 2019-11-26 16:54:07
I was reading a MS Excel help article about pivotcache and wonder what they mean by OLE DB and ODBC sources ...You should use the CommandText property instead of the SQL property, which now exists primarily for compatibility with earlier versions of Microsoft Excel. If you use both properties, the CommandText property’s value takes precedence. For OLE DB sources , the CommandType property describes the value of the CommandText property. For ODBC sources , the CommandText property functions exactly like the SQL property, and setting the property causes the data to be refreshed... I really

“General error Unable to open registry key Temporary (volatile) …” from Access ODBC

冷暖自知 提交于 2019-11-26 16:45:40
I tried the following: private String password = ""; private String dbName = "dataHC.accdb"; private String bd = dbName + ";PWD=" + password; String url = "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ="+bd+";"; private Connection conn = null; //Connect public void connect() { try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); conn = DriverManager.getConnection(url); if (conn != null) System.out.println("Conexión a base de datos "+dbName+". listo"); }catch(SQLException e){ System.out.println(e); }catch(ClassNotFoundException e){ System.out.println(e); } } Font: http://www.jc

How to connect PHP with Microsoft Access database

半城伤御伤魂 提交于 2019-11-26 15:56:12
问题 I am currently faced with a new challenge to develop a site using Microsoft Access as the primary database instead of mysql. I have not used MS Access before and I would like guidiance on how to go about it, I have looked up the w3c website on W3schools but the code gives error Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\Users\NNALI\Desktop\root\test