odbc

[IM002][unixODBC][Driver Manager]Data source name not found, and no default driver specified

♀尐吖头ヾ 提交于 2019-12-23 03:15:30
问题 I'm trying to install ODBC on Ubuntu 12.04 for the purpose of using it with Zabbix . I installed unixODBC as per these Zabbix instructions and modified my /etc/odbc.ini to look like this: [eyatest] Description = MySQL connection to 'dbname' database Driver = MySQL Database = dbname Server = localhost UserName = root Password = **** Port = 3306 Socket = /var/lib/mysql/mysql.sock But when I try connecting with isql I get the error in the title of this question: sudo isql -v eyatest [IM002]

Working with characters with accents in sql query and table name

不羁岁月 提交于 2019-12-23 03:11:25
问题 I'm doing some php & SQL Server 2005 in a database with accents ( é , è , à ) in both tables names , columns names and fields . Unfortunately , I'm not the owner/creator of this database , but I agree that the owner must be slapped :) . Im using ODBC driver to connect to the SQL Server odbc_connect($dsn,$user,$password) . My problem is that every fields with accents is not recognized . For example : despite having 7000 fields with the name "Réseau" $query="Select * from dbo.Table where col1=

How to enable odbc in XAMPP linux [duplicate]

左心房为你撑大大i 提交于 2019-12-23 02:26:06
问题 This question already has an answer here : Xampp php_pdo_odbc not working (1 answer) Closed 12 days ago . I am working on a php application in which for database connection I am using odbc. The code is working properly in windows but when I tried the same code in Linux I am facing Fatal Error Undefined Function odbc_connect() I think this error occurs because odbc is not enabled on XAMPP. Please advoice me how to enable odbc in XAMPP under Linux. Thanks in advance 回答1: Know this is an old one

ODBC Driver Manager The specified DSN contains an architecture mismatch between the Driver and Application

坚强是说给别人听的谎言 提交于 2019-12-23 02:02:22
问题 I have created an ODBC connection in PB10 Data Source and once I attempt to connect, below stop sign error occurs. Any idea on how to resolve this kind of connection error? Error : ODBC Driver Manager The specified DSN contains an architecture mismatch between the Driver and Application 回答1: Also, you could try to create the 32-bit ODBC in the 64-bit Operating System. Here's the exe you need to execute to create 32-bit ODBC in a 64-bit Operating System. c:\windows\syswow64\odbcad32.exe 回答2: I

When to close the result set (Basic ODBC question)

回眸只為那壹抹淺笑 提交于 2019-12-23 01:52:25
问题 I am working on some small project for the local firm and the following code runs fine on my machine, but it produces errors on their server. Currently I don't have access to that server, and this is not a field that I know a lot about, so I have to ask you guys. The page is written in the classic ASP (javascript for scripting). The logic goes like this: conn.Open("myconnection"); bigQuery = "..."; rs = conn.execute(bigQuery); while (!rs.eof) { ... smallQuery = "..." rssmall = conn.execute

how to save the DataSet after making changes to the database?

风格不统一 提交于 2019-12-23 01:35:10
问题 if I have a DataSet called myDs and I edit a field in it by direct access in a loop like the following: for (int i = 0; i < myDS.Tables[TableName].Rows.Count; i++) { //some function or web method to get the id value of the record being updated int n = getNewNumber(); //updating the dataset record according to some condition if (n == 0) { myDS.Tables[TableName].Rows[i]["id"] = n; myDS.Tables[TableName].Rows[i]["description"] = "some data"; } else { myDS.Tables[TableName].Rows[i]["id"] = n;

how to save the DataSet after making changes to the database?

送分小仙女□ 提交于 2019-12-23 01:34:29
问题 if I have a DataSet called myDs and I edit a field in it by direct access in a loop like the following: for (int i = 0; i < myDS.Tables[TableName].Rows.Count; i++) { //some function or web method to get the id value of the record being updated int n = getNewNumber(); //updating the dataset record according to some condition if (n == 0) { myDS.Tables[TableName].Rows[i]["id"] = n; myDS.Tables[TableName].Rows[i]["description"] = "some data"; } else { myDS.Tables[TableName].Rows[i]["id"] = n;

ODBC Teradata Driver HY001 Memory allocation error. What is the meaning?

戏子无情 提交于 2019-12-22 19:12:23
问题 I am using the python script that inserts a batch of data into Teradata using the teradata python module with a script similar to the one below. It uses an ODBC connection and occasionally I get the following error: [HY001][Teradata][ODBC Teradata Driver] Memory allocation error . What does this error mean? And any suggestions on how to fix this? connection.executemany( 'INSERT INTO {}.{} ("{}") VALUES ({})' .format(database, table_name, '","'.join(column_names), ','.join(['?']*len(columns

What does forName() method in the Class class do, when loading jdbc:odbc driver?

岁酱吖の 提交于 2019-12-22 18:58:08
问题 I am learning to enable my Java application to communicate with a MS Access database. I am unsure of one method, the Class.forName() method. The parameter I pass is "sun.jdbc.odbc.JdbcOdbcDriver", which loads the jdbc:odbc bridge for accessing a database. What does the Class.forName() do exactly and why is it needed? Thank you very much. 回答1: Class.forName() causes ClassLoader to load the class into memory. JDBC driver classes have static initializers that register them with DriverManager for

Set connection settings with Pyodbc + UnixODBC + FreeTDS

纵然是瞬间 提交于 2019-12-22 18:23:24
问题 I have a setup using Pyodbc, UnixODBC and FreeTDS, but somewhere in there some options are being set and I don't know where. According to SQL Server Management Studio, my program is sending some settings when it opens the connection: set quoted_identifier off set ansi_padding off set ansi_nulls off ... But I need a different set of settings: set quoted_identifier on set ansi_padding on set ansi_nulls on ... Is there any way to change this? If I can't do it with my current setup, are there any