odbc

Get table names from lotus notes database

筅森魡賤 提交于 2019-11-29 02:37:11
I'm trying to write a program that would dump a whole lotus notes database to a file via NotesSQL driver. I'm connecting via jdbc:odbc and have I can execute selects and get data from Lotus notes database here is the code try { System.out.print("Connecting... "); Connection con = DriverManager.getConnection("jdbc:odbc:NRC", "UserName", "Passw0rd1337"); System.out.println("OK"); DatabaseMetaData dmd = con.getMetaData(); String[] tableTypes = new String[] {"TABLE", "VIEW"}; ResultSet rs = dmd.getTables(null, null, "%", tableTypes); ResultSetMetaData rsd = rs.getMetaData(); while (rs.next()) {

Missing libtdsodbc.so in freetds-dev - MSSQL on Ubuntu

血红的双手。 提交于 2019-11-28 23:08:17
问题 I'm trying to get MSSQL working on Ubuntu 12.04 via ODBC, and I've followed these steps to the letter: http://jamesrossiter.wordpress.com/2011/03/08/connecting-to-microsoft-sql-server-using-odbc-from-ubuntu-server/ However, this omits both of these files that are pointed at in odbcinst.ini: Driver = /usr/lib/odbc/libtdsodbc.so Setup = /usr/lib/odbc/libtdsS.so So, I googled a bit and found this: http://ubuntuforums.org/showthread.php?t=433435&page=2 So I followed those instructions and put

Simplest Way to Test ODBC on WIndows

余生长醉 提交于 2019-11-28 22:33:33
With unixODBC you can use a simple command line utility called "isql" to test your connection and permissions of some queries. Without having to write extra code or install libs or bloated programs, is there a simple way to open up X data source send some sql commands and be done with it? Doing this on the command line would be preferable. One way to create a quick test query in Windows via an ODBC connection is using the DQY format. To achieve this, create a DQY file (e.g. test.dqy ) containing the magic first two lines (XLODBC and 1) as below, followed by your ODBC connection string on the

Common ways to connect to odbc from python on windows? [closed]

回眸只為那壹抹淺笑 提交于 2019-11-28 22:29:37
问题 What library should I use to connect to odbc from python on windows? Is there a good alternative for pywin32 when it comes to odbc? I'm looking for something well-documented, robust, actively maintained, etc. pyodbc looks good -- are there any others? 回答1: You already suggested pyodbc , and I am going to agree with you. It has given me the least amount of issues in my experience; I've used pymssql and adodbapi, and when those threw exceptions/created issues, I swapped out the code and

How to refresh linked tables in an Access mdb when ODBC changes

断了今生、忘了曾经 提交于 2019-11-28 21:35:13
问题 I can create an Access mdb and add a linked table to an Sql Server database via ODBC. If I change the Sql Server that the ODBC is connecting to with the ODBC control panel applet the mdb still connects to the original Sql Server until Access is restarted. Is there a way to relink these linked server tables without restarting Access? EDIT: I would like to do this in code 回答1: You can use the code below to refresh all ODBC tables in your Access project to a given DSN. How to use it Just copy

Oracle ORA-12154: TNS: Could not resolve service name Error?

白昼怎懂夜的黑 提交于 2019-11-28 21:29:46
I am a SQL Server user . I am on a project that is using oracle (which I rarely use) I need to create an ODBC connection so I can access the some data via MS Access I have a application on my machine called oraHome90. It seems to allow a configuration of something called a listener in a “net configuration utility”, I think that a “Local Net Service Name Configuration” needs to also be done. The IT support gave me this information to set up the ODBC connection . I have tried every combination that I can think of. I can get past a test that successfully passes a test to “login“ to the oracle

Connecting Python with Teradata using Teradata module

最后都变了- 提交于 2019-11-28 18:28:25
I have installed python 2.7.0 and Teradata module on Windows 7. I am not able to connect and query TD from python. pip install Teradata Now I want to import teradata module in my source code and perform operations like - Firing queries to teradata and get result set. Check if connection is made to teradata. Please help me writing code for the same as I am new to Python and there is no information available with me to connect to teradata. There are a number of ways to connect to Teradata and export table to Pandas. Here are three: Using teradata module # You can install teradata via PIP: pip

Setting up PostgreSQL ODBC on Windows

青春壹個敷衍的年華 提交于 2019-11-28 18:13:44
I have the latest 64 bit version of PostgreSQL. I am running Win 7 64 bit. I had installed the ODBC driver (via the initial installer) when I installed PG, and upgraded it to the latest version from http://www.postgresql.org/ftp/odbc/versions/msi/ . However, when I go to the ODBC control panel and try to add a User DSN, PostgreSQL isn't listed as a server. I was following the instructions given here , but I noted the links are dated. As I see PostgreSQL installer doesn't include 64 bit version of ODBC driver, which is necessary in your case. Download psqlodbc_09_00_0310-x64.zip and install it

Differences Between Drivers for ODBC Drivers

十年热恋 提交于 2019-11-28 16:48:15
问题 I was setting up the System DSN (64 bit) for my database in SQL server 2016 with Windows 10 64 bit pro. While I was asked to choose the driver to set up a data source, there are the following selections: ODBC Driver 13 for SQL Server SQL Server SQL Server Native Client 11.0 SQL Server Native Client RDA 11.0 It seemed I can set up the data source with all of these drivers. Then which one should I choose in terms of speed and efficiency? What's the difference between them? Thanks, Jason 回答1:

How can i connect to local advantage database using pyodbc in python?

微笑、不失礼 提交于 2019-11-28 14:29:22
As far as i can understand to use pyodbc you have to cnxn = pyodbc.connect('DRIVER={Advantage ODBC Driver};SERVER=local;DataDirectory=\\AltaDemo\Demo\AltaPoint.add;DATABASE=AltaPoint;UID=admin;PWD=admin;ServerTypes=1;') cursor = cnxn.cursor() This is the error i get from the console when i run this Error: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)') The name of the driver is Advantage StreamlineSQL ODBC , so the bare minimum connect string is: DRIVER={Advantage StreamlineSQL ODBC};DataDirectory=D:\Temp