odbc

Pyodbc Error - Python to MS Access

我的梦境 提交于 2019-12-12 17:22:09
问题 I am running on Windows 7, Python 2.7 and Microsoft Access 2013. When I try running: import pyodbc conn_string = ''' DRIVER={Microsoft Access Driver (*.mdb, *.accdb)}; UID=admin; UserCommitSync=Yes; Threads=3; SafeTransactions=0; PageTimeout=5; MaxScanRows=8; MaxBufferSize=2048; FIL=MS Access; DriverId=25; DefaultDir=C:\Users\jseinfeld; DBQ=C:\Users\jseinfeld\Desktop\Databasetest1.accdb; ''' connection = pyodbc.connect(conn_string) I receive the following error message: Error: ('HY000', "

Excel ODBC Data Connection Query time taken to refresh each query

情到浓时终转凉″ 提交于 2019-12-12 17:12:45
问题 I am trying to test out three variations of a query that is ran from an Excel data connection. I have three individual data connections and three individual tabs that get the data from each connection respectively. The connection string is identical for each query, only the command text (Oracle SQL) is different. Is there a way in Excel to view the execution times for each query? I am specifically using version Excel 2016 MSO 16.0.4456.1003 64bit 回答1: Something like this perhaps (assumes all

Using parameters with ADO Query (mysql/MyConnector)

℡╲_俬逩灬. 提交于 2019-12-12 17:03:18
问题 Today I downloaded and installed MyConnector so I can use Mysql with ADO, everything installed, OK!, I can make connection with ODBC and do a connection from my delphi environment. when I build my Query at runetime, I get an error saying : Project Project1.exe raised exception class EOleException with message 'Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another'. Process stopped. Use Step or Run to continue. function TForm1.CreateSQL : TADOQuery;

DBD::ODBC vs win32::odbc

淺唱寂寞╮ 提交于 2019-12-12 15:49:28
问题 I wonder what are the advantages and disadvantages using one over the other. This question originated from an advice I got here: Allocate buffer dynamically for DB query according to the record actual size I am looking for a list of the important differences (and not an exhaustive list) that will help me to make an educated decision. I have working experience with win32::odbc and can testify genuinely about it. It will very helpful if someone can share his/hers experience on top of the ‘dry’

RODBC error handling for sqlQuery

試著忘記壹切 提交于 2019-12-12 15:26:06
问题 I did not find any good error testing function for the results of an sqlQuery and that surprises me. In the documentation (http://www.inside-r.org/packages/cran/rodbc/docs/sqlQuery), they state that its return values are: "On success, a data frame (possibly with 0 rows) or character string. On error, if errors = TRUE a character vector of error message(s), otherwise an invisible integer error code -1 (general, call odbcGetErrMsg for details) or -2 (no data, which may not be an error as some

How to resolve “Invalid string or buffer length” after calling resultset.getString() connection from java to access mdb

佐手、 提交于 2019-12-12 14:44:18
问题 I am having some trouble with my java app querying an Access DB (.mdb). I am getting this error: [Microsoft][ODBC Driver Manager] Invalid string or buffer length but only when attempting to call resultset.getString("xxx") on certain rows. About half of the rows that I am querying process just fine but the other half give me this error. It seems like a problem with the data in the row itself but I can't quite figure out what would cause this. 来源: https://stackoverflow.com/questions/23371457

Why is my SQL Server auditing trigger messing up OBDC call/refresh from Access?

对着背影说爱祢 提交于 2019-12-12 14:23:28
问题 I've implemented an auditing trigger on one of my tables, it basically copies the old record and the new record into a table called ..._Audit, along with date and user. I'll post my script further down. The problem is that, when I insert a new record in Access then tab across, it refreshes and shows the first record in the table. An example of this is below - I have added the first three records then refreshed, then I added three more of the exact same data After adding them I should be

What framework to use to connect to a SQL Server instance from an iPhone? [duplicate]

我只是一个虾纸丫 提交于 2019-12-12 13:39:50
问题 This question already has answers here : How do i query data from SQL Server 2005/2008 databases to iPhone (2 answers) Closed 5 years ago . I need to write an iPhone application to connect an instance of SQL Server but I can't figure out which framework I could use to do this. Is there an ODBC framework I could use? Any links would be appreciated. Please do not tell me to use a web service as that won't fit for this situation. EDIT: I'm building a SQL querying tool for the iPhone. I don't

ODBC Driver 11 for SQL Server and SQLGetData limitations

心已入冬 提交于 2019-12-12 13:22:54
问题 The SQLGetData Function reference explains the following general limitation of the API: If the driver does not support extensions to SQLGetData, the function can return data only for unbound columns with a number greater than that of the last bound column. Furthermore, within a row of data, the value of the Col_or_Param_Num argument in each call to SQLGetData must be greater than or equal to the value of Col_or_Param_Num in the previous call; that is, data must be retrieved in increasing

odbc driver does not support the requested properties

故事扮演 提交于 2019-12-12 12:15:23
问题 odbc driver does not support the requested properties error come when we run the program at last line can anyone please give me idea. Dim conn As New ADODB.Connection Dim rsRec As ADODB.Recordset Dim cmd As ADODB.Command Dim query As String Set conn = New ADODB.Connection Set rsRec = New ADODB.Recordset conn.connectionString = "DRIVER={MySQL ODBC 3.51 Driver}; Server=127.0.0.1 ;Database=try;User=root;Password=root;" conn.Open query = "INSERT INTO user_table (Name)" query = stSQL & "VALUES