Odbc 3146 Error Access
Contents |
your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click error 3146 odbc call failed the register link above to proceed. To start viewing messages, select the
Run Time Error 3146 Odbc Call Failed Access 2010
forum that you want to visit from the selection below. Results 1 to 5 of 5 Thread: ODBC
Run Time Error 3146 Odbc Call Failed Oracle
- Connection Failed Error 3146 Tweet Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode
Access Macro Error 3146
05-05-09,19:17 #1 shanmugha View Profile View Forum Posts Registered User Join Date May 2009 Posts 8 Unanswered: ODBC - Connection Failed Error 3146 Hi, I have a situation here.I will be glad if anyone could help. We have a Microsoft Access 2003 accessing the SQL Server 2000 database using ODBC connection.I have set the database as a System Datasource with SQL run time error 3146 odbc call failed mysql Server driver and the connection settings. When i launch the .mdb application,i am able to connect to the database and fetch results.But only while populating the data on one of the combobox,the ODBC connection failed error 3146 arises. I turned on the tracing and saw that the SetConnection Attr failed error in the log. Any help is highly appreciated. Thanks in advance. Reply With Quote 05-05-09,20:24 #2 pkstormy View Profile View Forum Posts Moderator Join Date Dec 2004 Location Madison, WI Posts 3,926 Are you able to enter data for this field directly into the table? If not, are you able to enter data in this field directly into the SQL Server table (I'm guessing yes.) You can also try refreshing (or delete and relink) the linked tables. You can also put in a msgbox me!MyProblemField in the AfterUpdate (or BeforeUpdate) event to see what value is actually being saved in the combobox and see if it matches the SQL Server field type. I'm not sure what the error exactly means but these are some things I normally do to tro
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like http://www.dbforums.com/showthread.php?1642114-ODBC-Connection-Failed-Error-3146 you, helping each other. Join them; it only takes a minute: Sign up Determine real cause of ODBC failure (error 3146) with ms-access? up vote 6 down vote favorite 2 My client is using Access as a front end to a SQL Server database. They recently started getting ODBC - 3146 errors from time to time when http://stackoverflow.com/questions/730414/determine-real-cause-of-odbc-failure-error-3146-with-ms-access running some reports. From what I can tell, this is just a generic ODBC call failed error. I've tried sticking some error handling in the VB script that is launching the reports, but I am not having any luck getting extra error information. Code looks a bit like this. Public Function RunReports() On Error GoTo MyErrorTrap DoCmd.OpenReport "blah", acViewPreview DoCmd.Close DoCmd.OpenReport "foo", acViewPreview DoCmd.Close Exit_function: Exit Function MyErrorTrap: Dim errX As DAO.Error Dim MyError As Error If Errors.Count > 1 'This always seems to be 0, so no help For Each errX In DAO.Errors 'These are empty even if dont check for Errors.Count Debug.Print "ODBC Error" Debug.Print errX.Number Debug.Print errX.Description Next errX Else Debug.Print "VBA Error" Debug.Print Err.Number Debug.Print Err.Description End If 'Also have tried checking DBEngine.Errors, but this is empty too End Function I've also enabled tracing on the ODBC side, but that has bogged things down way too much, and I am so far unable to recreate the ODBC error. I am completely open for sugg
Recent PostsRecent Posts Popular TopicsPopular Topics Home Search Members Calendar Who's On Home » Microsoft Access » Microsoft Access » ODBC Timout. Error 3146 ODBC Timout. Error 3146 http://www.sqlservercentral.com/Forums/Topic205732-131-1.aspx Rate Topic Display Mode Topic Options Author Message Chubbly GeezerChubbly Geezer Posted Friday, July https://www.experts-exchange.com/questions/27831438/MS-Access-VB-Runtime-error-3146-ODBC-Call-Failed-connecting-to-mySQL.html 29, 2005 10:53 AM Grasshopper Group: General Forum Members Last Login: Tuesday, November 14, 2006 7:19 AM Points: 21, Visits: 1 I have an Access 2003 databse with tables linked to an SQL back end.I have a piece of code that creates and attempts to open a recordset on one of these linked tables. However I get ODBC call error 3146 failed error 3146 or such like.Looping through the errors collection it seems the request has timed out.Any ideas.? Post #205732 Cory PerkinsCory Perkins Posted Saturday, July 30, 2005 9:12 AM SSC-Enthusiastic Group: General Forum Members Last Login: Monday, October 26, 2009 2:56 PM Points: 102, Visits: 6 Would you mind posting the code that creates the recordset? Post #205860 SQLArchSQLArch Posted Monday, August 1, 2005 7:40 AM SSC-Enthusiastic Group: General Forum Members Last error 3146 odbc Login: Wednesday, May 30, 2012 10:19 PM Points: 184, Visits: 117 You can try increasing ODBC timout for Access query. I think default is 60 secounds by Access. Post #206053 nuno paivanuno paiva Posted Monday, August 1, 2005 7:45 AM Forum Newbie Group: General Forum Members Last Login: Wednesday, August 10, 2005 9:43 AM Points: 8, Visits: 1 hello there,I had to deal with something similar when migrating some ms access apps to sql server...I've just changed the ODBC timeout property in the query designer to 0secs. You can do this programatically also through ADO Hope it helps,Nuno Paiva Post #206058 Chubbly GeezerChubbly Geezer Posted Monday, August 1, 2005 8:17 AM Grasshopper Group: General Forum Members Last Login: Tuesday, November 14, 2006 7:19 AM Points: 21, Visits: 1 Cheers guysbut the problem is when accessing a linked table via code.i.e. linked table = 'subscriptions'code = dim mydb as databaseset mydb = currentdb()dim myrs as recordsetset myrs = mydb.openrecordset("subscriptions")This times out with an ODBC 3146 error. I have also tried accessing the table directly on the server via ADO, but that times out also unless I set the timeout = 0 (which I don't like doing except for testing) in which case it just hangs.Incidentaly, this code is found in the middle of quite a large module th
for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Ask a Question Ask for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups Website Testing Store Headlines Experts Exchange > Questions > MS Access (VB) Runtime error 3146 ODBC Call Failed (connecting to mySQL) Want to Advertise Here? Solved MS Access (VB) Runtime error 3146 ODBC Call Failed (connecting to mySQL) Posted on 2012-08-16 MS Access MySQL Server 1 Verified Solution 2 Comments 7,811 Views Last Modified: 2012-08-23 Hi Experts I have recently had to update mySQL from 5.1 to 5.5 with a MS Access 2003 front end (via ODBC links) When I run some legacy SQL queries on Access using a form I inherited (and worked fine before the rebuild) I am getting Visual Basic Error 3146 ODBC Call Failed. I can run the code directly within mySQL so I am at a loss what the problem might be. I have switched ODBC Tracing on, and get the following fragment in the log - which doesnt really help much: InterconnecTRep 90-14f0 EXIT SQLExecDirect with return code -1 (SQL_ERROR) HSTMT 0FA83860 UCHAR * 0x11CF44B4 [ 2010] "## This report currently includes ...(SQL is in here)" SDWORD 2010 DIAG [S1000] [MySQL][ODBC 5.1 Driver][mysqld-5.5.27-log]Query execution was interrupted (1317) Does anyone know how I can force more detail on the 3146 error, so it shows me what the *real* problem is? Thanks 0 Question by:stummj Facebook Twitter LinkedIn Google LVL 56 Active today Best Solution byJim Dettman (Microsoft MVP/ EE MVE) <