odbc
7 TopicsODBC/SQL Server Connection Error
I am attempting to connect my MS Access 2013 front end to a SQL Server 2012 backend using the code below. I am getting the error message "Optional feature not implemented" from the ODBC driver. I am using the SQL Server driver but I also have access to ODBC Driver 11 and ODBC driver 17 for SQL server, but I still get the same error message regardless of which of these three drivers are used. What am I doing wrong? Dim cnn As New ADODB.Connection Dim cmd As New ADODB.Command Dim connString As String Dim prmEmployeeID As New ADODB.Parameter Dim prmYearBeginDate As New ADODB.Parameter connString = "DSN=FullOnAccounting;Driver={SQL Server};Server=AMF\MSSQL;Database=Full_Up_Accounting;TrustedConnection=Yes;" cnn.Open (connString) <--Error occurs hereSolved276Views0likes2CommentsUnable to insert records in Linked table from MS Access to SQL Server
Hi, I have created an MS Access project in 2007-2016 format. The OS is Windows 11. For POC purpose it is a simple form with ID as Autonumber and Name1 with short text fields. Now I am trying to link the MS Access to sql server table. For this I have selected ODBC driver 17 for sql server. First I exported table from ms access to sql server to create the table copy in sql server. Then added Primary Key in sql server table. Then I have right clicked table in MS Access and selected Linked Table Manager to select the table in sql server. On adding new record and save in ms access form, the table in ms access is adding new records but sql server is not. Earlier while exporting the data was exported successfully but after linking table new records are not getting added.Solved1.3KViews0likes5CommentsODBC from Access to SQL Server database - query timeout expired
I am having issues connecting to a database located on a SQL Server 2022. When creating the connection all test gives OK. But when trying to connect, it fails with: ODBC--call failed "Query timeout expired" If I don't define the database, then Access connects to master db and lists the tables that I can access. So it seems the connection to the server itself is ok. Tried ODBC SQL server driver, SQL Server 17 and 18 odbc driver, all same results. Same database on SQL Server 2014 also does not work for my user, but another user has previously been able to connect to old database, but seems something is missing either client-side or server option in the new setup?16KViews0likes8CommentsAccess with SharePoint List link - ODBC
Hi all, I needed to get some of the SharePoint List data into Python, Matlab etc. As there were no dedicated connectors that would also combine well with SSO, I used ODBC to create a connection with Access DB. In this Access DB I linked the SharePoint list. It allows me to use basic SQL on sharepoint data from the code. That works reasonably well when it comes to running Select and Delete queries. However when it comes to Inserts it has encountered an issue when a duplicate record is added to a unique column. This breaks the linked connection in Access Db. To restore it I need to open Access Db and resolve the conflicts there or refresh the SharePoint link. Is there any way to do through some command without opening the Access Db?1.5KViews0likes0CommentsProblem to migrate simple Access mde app and Microsoft Sql Database to another PC
Hello there, Im struggling to move an old Access app, which runs on a windows server 2003, to my Windows 10 PC, The app is run from the Server desktop via mde file and is connected to a microsoft SQLEXPRESS database installed locally on the server, I installed locally on my pc windows 10 Microsoft Sql express, and changed the hostname of my PC setting "SERVER". I can access the tables and the database seems to work, but when I launch the "example.mde" file from my computer the application fails and cannot find the database asking me for the path.. if i click continue with trusted authentication it ask me again for every move i make .. I don't know how to specify the data source or connection string for the database on the new machine, I believe this is about the ODBC driver, attached the error I get. this is the Image of the error i get Thanks in advance for the help582Views0likes0CommentsAccess ODBC does not recognize automatic client reroute
Hi, I have an ODBC connection to a DB2/LUW database in MS/Access (2016) and am trying to implement ACR (Automatic Client Reroute). I have added the following (bold) to my db2dsdriver.cfg file: <database name="MYDBASE" host="DBHOST1" port="60000"> <parameter name="hostname" value="DBHOST1"/> <parameter name="port" value="60000"/> <parameter name="AltHostName" value="DBHOST2"/> <parameter name="AltPort" value="60000"/> <acr> <parameter name="enableAcr" value="true"/> <parameter name="maxAcrRetries" value="10"/> <parameter name="acrRetryInterval" value"1"/> <parameter name="enableseamlessACR" value="true"/> <parameter name="enableAlternateServerListFirstConnect" value="true"/> <alternateserverlist> <server name="otherserver" hostname="DBHOST2" port="60000"/> </alternateserverlist> </acr> </database> I have tested this on my machine and it successfully falls over to the alternate server when the primary server is unavailable. However, when I attempt to connect to the database in MS/Access, I get a connectivity error (SQL30081N) Has anyone worked with MS/Access and ACR? Thanks!1.4KViews0likes4Comments“Operating system is not presently configured” error with Access ODBC
I get the following error when I try to connect to Microsoft Access Database via Python. The code has been working all this time and only started popping the error today. Can someone please guide me what may be the problem occurring now? I tried doing thishttps://stackoverflow.com/questions/63899661/operating-system-is-not-presently-configured-error-with-access-odbceven after removing the “Office 16 Click-to-Run Extensibility Component 64-bit Registration” my problem isn't getting solved. import pyodbc as pyo import os #print(pyo.drivers()) filename='//MCISERVER1/TestData/access/Proof.mdb' full_file=os.path.abspath(os.path.join('data',filename)) print("opening access") Driver='{Microsoft Access Driver (*.mdb, *.accdb)}' access_driver=['MS Access Database'] try: cnn=pyo.connect(driver=Driver,dbq=full_file,autocommit=True) except pyodbc.Error as ex: print("Error connecting") cursor=cnn.cursor() sql="select * from [ERT ITRON] as e where e.SO='7888'" cursor.execute(sql) for row in cursor.fetchall(): print(row) print("success") cursor.close() cnn.close() print("connection closed")2KViews0likes3Comments