odbc

Display Big5 encoding from dBase on the web

帅比萌擦擦* 提交于 2020-01-05 09:12:18
问题 I have a dBase III file, the Chinese words inside is encoded in Big5. With the help of PHP ODBC, I can retreieve/ insert record to/ from the dBase file. However, I couldn't diplay the chinese words (Big5) correctly. When I use mb_detect_encodingfunction to detect those chinese words, it appears as "UTF-8". I guess the odbc dump the data in the form of "UTF-8" instead of it's original encoding (ASCII/ Big5). I would like to ask, how can I display the words correctly? Thanks so much for your

Parameterized query that returns TEXT column(s) always returns zero for INT columns

我们两清 提交于 2020-01-05 08:24:21
问题 Problemt with C# mySQL ODBC My table CREATE TABLE `account` ( `id` int(11) NOT NULL AUTO_INCREMENT, `fbid` varchar(30) NOT NULL, `fbname` varchar(80) NOT NULL, `datecreate` datetime NOT NULL, `ipcreate` varchar(20) NOT NULL, `datelogin` datetime NOT NULL, `iplogin` varchar(20) NOT NULL, `xstatus` int(2) NOT NULL, `xverstion` int(5) NOT NULL, `xdata` text NOT NULL, `xitem` text NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM AUTO_INCREMENT=1 DEFAULT CHARSET=utf8 My procedure: CREATE PROCEDURE

ORA-01460: unimplemented or unreasonable conversion requested blob insert

懵懂的女人 提交于 2020-01-05 08:04:08
问题 I am trying to insert an blob into a database . For this I am using c++ and microsoft ODBC driver . The app works fine with files that have less than 4000 bits . When i am trying to insert a file that has more than 4000 bytes , meaning 3,9 KB it returns : ORA-01460: unimplemented or unreasonable conversion requested . The database is oracle 11.2.0 . I have searched the internat for a solution but find none . How could i solve this problem ? What can i do ? The code for my insert function is :

Query metadata from HIVE using MySQL as metastore

我与影子孤独终老i 提交于 2020-01-05 07:37:12
问题 I am looking for a way to query the metadata of my HIVE data with a HiveQL command. I configured a MySQL metastore, but it is necessary to query the metadata via HIVE command because then I want to access the data with ODBC connection to the HIVE system. Thanks in advanced. 回答1: You can do it currently using Hive JDBC StorageHandler: https://github.com/qubole/Hive-JDBC-Storage-Handler Example of table creation from their page: DROP TABLE HiveTable; CREATE EXTERNAL TABLE HiveTable( id INT, id

Choosing the correct ODBC driver for SQL Server

别等时光非礼了梦想. 提交于 2020-01-05 05:58:14
问题 I'm writing some documentation on how to connect Access to SQL via ODBC. I honestly always just choose "11.0" when it comes to drivers, just because. But I'm wondering what determines the driver I "should" be using? Does the version of SQL Server determine this? And I'm assuming the "User's" computer won't have all the driver's I'm seeing here so can someone just clarify the rules to choosing the correct driver? 回答1: According to a blog post located here, SQL Native Client was introduced in

ODBC DERBY DRIVER for PHP

纵然是瞬间 提交于 2020-01-05 05:54:49
问题 I installed easysoft odbc derby driver in windows 7 and try to connect to derby database after I configure on ODBC Data Source Administrator DSN and connection succeed. then i tried on php script //commz is the DSN name ind ODBC data source admin $connection = odbc_connect("commz",$user, $password); if ($result = odbc_exec($connection, "SELECT * FROM ADDRESSBOOK")) print "Command executed successfully<BR><BR>"; else print "Error while executing command<BR><BR>"; // Print results while(odbc

get list of ODBC data source in local pc using PHP

走远了吗. 提交于 2020-01-05 05:50:06
问题 I'm looking for a way to get a list of ODBC data sources in local PC using PHP. How can I achieve that? 回答1: If I assume that you're running on windows User defined ODBC connections are stored under HKEY_CURRENT_USER\Software\ODBC\ODBC.INI System defined ODBC connections are stored under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI ODBC drivers are defined under HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBCINST.INI So you need some trick with php to read from registry like this one or this one If I

Changing Column Name in MDB file using JDBC java

此生再无相见时 提交于 2020-01-05 05:49:08
问题 I am currently writing a mdb Migration script in Java. This is noting but adding and modifying some of the column names in the MDB file. I created new tables and thats not a problem but I could not find a query to Alter the name of the column Lets say I have table named Employees having columns as "ID", "EName", "Active?" Now I want to change the column name "Active?" to "Active" (i.e. without question mark.) How this can be done using JDBC java. THanks 回答1: One way to accomplish your goal

ERROR : The specified DSN contains anarchitecture mismatch between the Driver and Application

我的未来我决定 提交于 2020-01-05 05:27:27
问题 . I try to connect my BI project in visual studio 2008 to mysql database. so I defined odbc connection in Start > Programs > Administrative Tools > Data Sources [win 7] and I tasted it, it connected successfully . but when I want to open this connection in VS > "View" > "Server Explorer", I see this error: ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains anarchitecture mismatch between the Driver and Application even I put "root" as user name in the text box and pass

ODBC connection to MySQL won't add values

狂风中的少年 提交于 2020-01-04 06:58:53
问题 I'm trying to insert values from my asp.net application into my MySQL database. On the register page people can fill in Name and Pass and press submit. Public Function InsertMember(ByVal objMember As Member) As Boolean myconn.Open() Dim cmd As New OdbcCommand("INSERT INTO member(Name, Pass) VALUES (@Name,@Pass)", myconn) cmd.CommandType = CommandType.Text cmd.Parameters.Add("Name", OdbcType.VarChar).Value = objMember.Name cmd.Parameters.Add("Pass", OdbcType.VarChar).Value = objMember.Pass cmd