odbc

Connect to a local database from phpmyadmin with R

六月ゝ 毕业季﹏ 提交于 2019-12-10 11:26:34
问题 I have searched for a lot of threads explaining the connexion with a database with R but I still can't make it work. At the moment, I know that I have to install the package 'ROBDC' and use either odbcConnect() or odbcDriverConnect() . But the first one seems harder since I have to set an OBDC connection (tried some things but didn't work too t.t). My final goal is to extract some data in a database located in a web server but, first, I wanted to see how the functions work for a local

Querying Jet Databases/Excel files with C# under x64 OS

最后都变了- 提交于 2019-12-10 10:24:14
问题 So I have learned that that the Microsoft.Jet.OLEDB.4.0 data provider for querying data sources like Microsoft Access MDB files and Excel spreadsheets does not work under a Windows 64-bit operating systems. What I am now supposed to use to query against these file types in .NET 3.5 (C#) applications in order to ensure compatibility in both x86 and x64 environments? I have scoured the Internet and I cannot seem to find a straight answer on how to handle this incompatibility. I've also tried

Nodejs ODBC Connection on Windows

守給你的承諾、 提交于 2019-12-10 03:26:46
问题 I have a project that would be perfect for Node.js, but it has to connect to a ODBC database and it has to run on windows. I see ODBC modules for nodejs on linux, but not windows. Does anyone have any suggestions on how to do this? 回答1: If you're like me and arrived here from Google, because you have old (ie ancient) systems, I came across Is it possible to marry WSH (wscript) with nodejs and was alerted to the npm module "win32ole": https://www.npmjs.com/package/win32ole. While not just an

Python pyodbc connections to IBM Netezza Erroring

天涯浪子 提交于 2019-12-10 03:01:31
问题 So. This issue is almost exactly the same as the one discussed here -- but the fix (such as it is) discussed in that post doesn't fix things for me. I'm trying to use Python 2.7.5 and pyodbc 3.0.7 to connect from an Ubuntu 12.04 64bit machine to an IBM Netezza Database. I'm using unixODBC to handle specifying a DSN. This DSN works beautifully from the isql CLI -- so I know it's configured correctly, and unixODBC is ticking right along. The code is currently dead simple, and easy to reproduce

How do I get connection pooling working on a PHP-CGI PDO iSeries Access UnixODBC Connection?

杀马特。学长 韩版系。学妹 提交于 2019-12-09 18:58:47
问题 I am trying to get connection pooling working using PHP/PDO with a UnixODBC driver called iSeries Access for Linux. I do not set the PDO::ATTR_PERSISTENT in my PDO constructor as I want to use pooling and not persistence (I am in a PHP-CGI environment). Using the "Connection Pooling" section of http://www.ibm.com/developerworks/systems/library/es-linux_bestpract.html I have placed Pooling = Yes in my odbc.ini and CPTimeout = 600 in my odbcinst.ini However, it seems that the ODBC driver is not

How do I get a list of available tables from an ODBC connection?

↘锁芯ラ 提交于 2019-12-09 17:50:29
问题 In Excel I can go to Data -> Import External Data -> Import Data... and then select the data source to use and then after I provide login information it gives me a list of tables. I would like to know how to get that list programmatically using C#. 回答1: What type of data source are you interrogating? SQL Server? Access? Look at this thread: http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/bcf25d16-3ecd-427d-9ad2-57619d6b3691 Also documentation for the OdbcConnection

Is there an overview of all SQL Server 2012 error codes?

穿精又带淫゛_ 提交于 2019-12-09 14:16:26
问题 SQLGetDiagRec returns a native error code. Is there anywhere an overview of the error codes of SQL Server 2012? I couldn't find anything on MSDN. 回答1: I'm unable to find a list of the individual codes in the internet. However I did find a list of the severity levels here on MSDN. They are as follows: Severity level / Description 0-9: Informational messages that return status information or report errors that are not severe. The Database Engine does not raise system errors with severities of 0

How to connect ms sql database using perl in Windows?

邮差的信 提交于 2019-12-09 14:09:25
问题 I want to connect ms sql database through perl language. The following steps are I made. I've created a database table in the name "SampleDb" Configured ODBC and I've set name for sql server driver as "SampleDb" Now I've tried to connect as follows, , my $dbs = "dbi:ODBC:DRIVER={SQL Server};SERVER={SampleDb}"; my $dbh = DBI->connect($dbs, "username", "password"); But Now I got the following error DBI connect('DRIVER={SQL Server};SERVER={SampleDB}','username',...) failed: [Microsoft][ODBC SQL

MySQL ODBC 32 vs 64 bit

耗尽温柔 提交于 2019-12-09 13:29:52
问题 I have a 32-bit application that must run on a Windows x64 server using a 64-bit version of MySQL. Should I use a 32-bit ODBC driver or a 64-bit ODBC driver? Or should I install a 32-bit version of MySQL too? 回答1: You would need to install a 32-bit SQL and ODBC driver seeing as how your application is in 32-bit. For compatibility reasons. I am still searching, will edit. ** EDIT To work around this problem, use the appropriate version of the ODBC Administrator tool. If you build and then run

Get all tables and all columns from a odbc database

我与影子孤独终老i 提交于 2019-12-09 12:15:27
问题 I want to get all "table" names from a OdbcConnection, and for all "table" names I want to recieve all column names. So I came across the OdbcConnection.GetSchema() functionallity. I manges to get all the table names by simply using connection.GetSchema("Tables") . But now I want to get the column information for those tables. I noticed connection.GetSchema("Columns") will give me columns information, but this only gives it from a random/first (?) "table" in the datasource (using Windows CSV