odbc

QSqlQuery causing ODBC Function sequence error

戏子无情 提交于 2019-12-25 01:22:44
问题 I searched SO and Google but didn't find much help on this question. It seems due to ODBC functions being called out out of order. But since I am using QSql that wraps ODBC, it is hard for me to track down the function. Please help... I was able to connect to the sql server database I tested a very simply query and still got the error. I don't think it's due to column binding. I was able to run the query with sql server, so I think the sql query is ok. The tools I am using: VS c++ 2017, CMake

ODBC select statement to get a boolean

穿精又带淫゛_ 提交于 2019-12-25 01:19:16
问题 I'm trying to check whether a Username and Password exist in my MySQL database and if so I need to return true, otherwise false. This is what I have atm: myconn.Open() Dim selectSQL As String = "SELECT * FROM member WHERE Username = " & objMember.Username & " AND Password= " & objMember.Password Dim cmd As New OdbcCommand(selectSQL, myconn) cmd.ExecuteNonQuery() If cmd.Parameters.Count = 1 Then Return True Else Return False End If myconn.Close() myconn.Dispose() All I get is 0, even though

Extract from Progress Database to SQL Server

落花浮王杯 提交于 2019-12-25 01:07:12
问题 I'm looking for the best approach (or a couple of good ones to choose from) for extracting from a Progress database (v10.2b). The eventual target will be SQL Server (v2008). I say "eventual target", because I don't necessarily have to connect directly to Progress from within SQL Server, i.e. I'm not averse to extracting from Progress to a text file, and then importing that into SQL Server. My research on approaches came up with scenarios that don't match mine; Migrating an entire Progress DB

Poco ODBC library undefined reference error

大兔子大兔子 提交于 2019-12-25 00:18:03
问题 I am in process to build a program that establish connectivity with MySQL database using ODBC. I am using Poco-Data-ODBC library for the same. I am getting the following error : D:\Hardware\Windows\PocoODBC/PocoODBC.cpp:27: undefined reference to `__imp__ZN4Poco4Data4ODBC9Connector17registerConnectorEv' D:\Hardware\Windows\PocoODBC/PocoODBC.cpp:34: undefined reference to `__imp__ZN4Poco4Data4ODBC9Connector19unregisterConnectorEv' D:\Hardware\Windows\PocoODBC/PocoODBC.cpp:41: undefined

How to insert R dataframe into existing table in SQL Server

≡放荡痞女 提交于 2019-12-25 00:15:37
问题 After trying a few different packages and methods found online, I am yet to find a solution that works for inserting a dataframe from R into an existing table in SQL Server. I've had great success doing this with MySQL, but SQL Server seems to be more difficult. I have managed to write a new table using the DBI package, but I can't find a way to insert into using this method. Looking at the documentation, there doesn't seem to be a way of inserting. As there are more than 1000 rows of data,

Unable to connect to remote SQL database from WAMP Server using PHP 7.1

穿精又带淫゛_ 提交于 2019-12-25 00:15:20
问题 I have tried scouring the internet about this, but cannot seem to find a resolution, so I apologise in advance if this is a duplicate as I cannot seem to find anything that helps my situation. I have setup a new WAMP 3.1.3 Server installation and I'm trying to run a Laravel 5.6 application. The application connects to a remote MSSQL database on the network and I have this running successfully on my Homestead test environment using the same PHP version (but Ubuntu). On my WAMP Server

Connecting with MS Access Data source from java code

﹥>﹥吖頭↗ 提交于 2019-12-24 22:29:44
问题 I have created a .mdb file using MS Access. I have created a User DSN in windows. now i want to connect to this data source using java code ? how can i do that ? 回答1: Emm... As I can remember, you have to create DataSource (see image) ... then use jdbc to access it; Here is a good example of how to do this; EDIT : In case of remote datasource request you may use this instructions which describe how to create the bridge ; put attention at this snippets : Class.forName(sun.jdbc.odbc

Is there a workaround for the maximum length of an ODBCConnection.CommandText string in VBA?

亡梦爱人 提交于 2019-12-24 21:46:22
问题 I have a VBA script that generates a query string for a SAP HANA ODBC Connection in Excel. The query is determined by user inputs and can vary greatly in length. The query itself uses many versions of a similar query appended to one another using UNION ALL syntax. The script sometimes throws a runtime error when trying to refresh. From my research, it has become clear that the reason for this is that the CommandText string exceeds a maximum allowed length of 32,767 (https://ask

vba ODBC gives Unspecified error when oracle table is having timestamp

旧巷老猫 提交于 2019-12-24 20:40:31
问题 I have vba code to fetch Oracle tables data in to a recordset via ODBC . But it shows some unspecified error if the oracle table is having timestamp field in it. I have 100+ table i dont know which table will have timestamp. I am running below query in loop to retrieve data. Query = "Select End_Time from MyTable" 'this table has End_Time timestamp(6) field CmdSQLData.CommandText = Query CmdSQLData.CommandType = adcmdText CmdSQLData.Timeout=0 set rs = CmdSQLData.Execute() 'This line shows

Closing/Pooling MySQL ODBC connections

旧巷老猫 提交于 2019-12-24 19:08:47
问题 I am rebuilding a system that has developed over the past five years, initially started with Classic ASP I am now moving the whole thing to ASP.NET (using VB.NET) The system has been plagued by a persistent problem of having too many data connections open, resulting in periodic "max_connections is exceeeded" errors. Having asked my server hosts many times about this, I am still having troubles so thought I'd open it up to SO. I am currently opening connections as follows: Dim sql = "SQL