Error No 3151
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies error 3151 odbc connection failed ms access of this site About Us Learn more about Stack Overflow the company error 3151 odbc connection failed windows 7 Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges runtime error 3151 Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a odbc – connection to name failed. (error 3151) access minute: Sign up ODBC Call Failed - Error 3151 up vote 3 down vote favorite 1 We have an Access database migrated from Access 97 to Acces 2007 with some linked tables to an SQL Server 2008 database. We are using a File DSN in the ODBC Administrator. Connection tests work fine there. In fact, we have a main form in the
Run Time Error 3151 Odbc Connection Failed Oracle
Access 2007 application that shows the data always correctly. The problem appears when we execute a task that makes the following call: Dim dbs As Database
Dim rstAppend As Recordset
Set dbs = CurrentDb
Set rstAppend = dbs.OpenRecordset(strAccessTable, dbOpenDynaset, dbSeeChanges) OpenRecordset throws the error number 3151 and occurs randomly but it appears quite frequently. It's sporadic. When we don't get the error, the task works fine. It not happens always, mostly we're fine. When it happens it happens for all subsequent tasks tried. We have to close and reopen the Access database and pray to the good Lord that it works. Sometimes, refreshing the tables in the Linked Table Manager solves the problem, but others don't. We receive sometimes an error "ODBC--Call Failed" when refreshing the Linked Table Manager. Deleting the File DSN and creating a new one solves the problem. We have tried with two different drivers (SQL Server and SQL Server Native Client 10) and in both cases the problem remains. Also we have tried to put the Access File in the same machine than the SQL Server and the problem re
be down. Please try the request again. Your cache administrator is webmaster. Generated Fri, 14 Oct 2016 07:28:10 GMT by s_wx1131 (squid/3.5.20)
Custom Search UtterAccess Forums>Microsoft® Access>Access Modules Runtime Error 3151: Odbc -- Connection To '{db}' Failed Forum HomeSearchHelpUA Messages|-- UtterAccess.com NewsAccess Knowledge Center|-- http://www.utteraccess.com/forum/runtime-error-3151-odbc-t1966859.html Access Code Archive|-- Access Knowledgebase / FAQ|-- Access TutorialsMicrosoft® Access|-- http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=112862 Local Access User Groups (AUGs)|-- Interface Design|-- Access Q and A|-- Access Tables + Relationships|-- Access Queries|-- Access Forms|-- Access Reports|-- Access Macros|-- Access Modules|-- Access Date + Time|-- Access Errors + Error Handling|-- Access Built-in Functions|-- Access Searching + Data Mining|-- Access Records|-- error 3151 Access Security|-- Access Automation|-- Access Database Container|-- Tool bars, Menu bars + Ribbon|-- Access Services (Web Databases)|-- Access Data Access Pages (Deprecated)|-- Access Data Projects - ADP|-- Access Runtime, Packaging & DeploymentAnd More...|-- Microsoft SQL Server|-- SQL Server Reporting Services|-- Microsoft SharePoint|-- Microsoft Internet Explorer|-- Visual Basic 6 and Earlier|-- Visual Basic 2003 and Later|-- error 3151 odbc ASP and VBScript|-- Web Development|-- PHP, Perl, MySQL and Postgres|-- Other Database Engines|-- BI Tools and Applications|-- JAVA and C#|-- GraphicsMicrosoft® Office|-- Microsoft Excel|-- Microsoft Excel FAQs|-- Microsoft Word|-- Microsoft Outlook|-- Microsoft PowerPoint|-- Microsoft FrontPage/Exp. Web|-- Other Microsoft ProductsPC|-- Network Issues|-- Q & A - Hardware|-- Q & A - Software|-- Q & A - Other PC|-- Virus + Security DiscussionUtterAccess Odds and Ends|-- General Chat|-- Q & A - UtterAccess.com Forums|-- Q & A - Access Wiki Options edarocView Member Profile May 10 2011, 02:40 PM Post#1Posts: 1,025Joined: 27-July 04From: Rochester NY USAI am stuck, have spent almost 2 days trying to resolve this one.nvironment: Access 2007 FE, SQL Server 2008 BE, able to open tables, run queries without getting the error.Development stage - have been working on this project for a few weeks with no problems. Late Friday the error popped up, sporadic at first - exited Access, got back in and it was OK for a litt
SQL Server experts to answer whatever question you can come up with. Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums. SQL Server Forums Profile | ActiveTopics | Members | Search | ForumFAQ Register Now and get your question answered! Username: Password: Save Password Forgot your Password? All Forums Other Forums MS Access ODBC--Connection to "databaseName" failed Reply to Topic Printer Friendly Author Topic rum23 Yak Posting Veteran 77 Posts Posted-10/19/2008: 17:31:38 I get the error "ODBC--Connection to 'databasename" failed". Error number is 3151. This error is in ACCESS 2007 and the tables are linked to SQL Server 2005 database tables. This error occurs randomly but it appears quite frequently. Basically, this happens if a series of queries are executed in MS access. Usually, the first query executes fine and while executing the 2nd one, it bombs. Its sporadic. Sometimes, the 1st and the 2nd queries execute just fine but bombs on the 3rd one. I did google on this and tried couple of resolutions but none of them worked. I have setup a odbc datasource for the database in SQL Server 2005. What could be causing this error? MS ACCESS 2007 and SQL Server 2005 are on one machine (locally on a developement machine). Please let me know if you need more details. Your help is appreciated! Thanks! rum23 Yak Posting Veteran 77 Posts Posted-10/19/2008: 18:11:40 Anybody??? Please help AndrewMurphy Flowing Fount of Yak Knowledge Ireland 2916 Posts Posted-10/21/2008: 06:05:57 I'd suspect a coding problem....maybe your variable holding for database connection string is being cleared/initialised/nullified. Can you embed some tracing statements into your code? rum23 Yak Posting Veteran 77 Posts Posted-10/21/2008: 15:38:14 I have looked at this over and over again and I am reaching a dead end. Bascial