473,395 Members | 1,474 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Access Pass Through Queries and Admin Tables, Win Vista/7

I've changed this drastically as I'd thought I'd posted a solution, but I was wrong. Now I'm looking for help!

I write Aceess 2003 front ends against an Oracle database using pass through queries (PTQ) instead of linked tables. I was modifying an application report I came upon Admin - 00 type tables that were mysteriously appearing in my table tab. These would appear whenever my code called upon some PTQs or when I ran those particular PTQs from the query tab.

The above issue would only occur when the machine running Access is a Win Vista or Win 7. It does not happen XP Machines (mine blew-up Monday 8) which is why I am using my employees' Win 7 and Vista machines where I discovered the issue).

The advice Keith gives in this topic does not work:
http://bytes.com/topic/access/answer...8-admin-tables

In summary, the very reasonable solution from Keith was to ensure that the log messages property of the PTQ was set to no. Unfortunately, in all of my PTQs, which are generated by my code (I can post the VBA proc I've been using since about 2002, if anyone is interested), log messages were set to no.

So the solution does not solve my problem of Admin - 00 type tables appearing everytime I run a PTQ.

I looked to see if the intelli-sense would show me any DAO query property which indicated log messages. Just to explicitly state it would be no. But I couldn't find anything scrolling through the pop-up properties of a DAO.querydef object.

Does anyone have another solution?
--
Tim
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Butters?" - Ditto
Jul 25 '11 #1

✓ answered by Tim Marshall

Hi everyone, it's two+ years later, an absence from work and job change and I'm back at this application now. My apologies to respondents and especially to people with similar issues coming across this topic item via a search engine for inconsiderately leaving this so late - laziness on my part and stupidity for losing track of the myriad forums in which I lurk or participate.

The "Admin" part of these tables is explained at the bottom of the following link for A2007:

http://office.microsoft.com/en-ca/ac...010206488.aspx

I have confirmed this is a Win 7 problem that id not exist in Win XP. There is no issue with respect to the SQL, Oracle, via Pass through query, or Jet. I have confirmed that it happens when an Oracle varchar2(2000) field from the pass through query is inserted (append) into a a jet table. The message in the Admin table, under the single field called ODBC, is:

01004 - 0 - [Oracle][ODBC]String data, right truncated.

The creation of the table does not occur when the SQL (constructed in VBA) omits the varchar2(2000) field. There are many other varchar2 fields, ranging in size from 3 to 100.

The data in the pass through query and the Jet table match exactly and there is no data in any row or column in either that does not match the other.

So this tells me that the Oracle server, via the ODBC driver, is sending me messages about what has been done to the data, but thee messages are not errors.

So, so far, no solution other than the following proc to be run in an appropriate place such as the procedure that creates the mentioned Oracle query and inserts results into a local table:

Expand|Select|Wrap|Line Numbers
  1. Public Sub sAdminOracleTablesRemove()
  2. 'Goes through tabledefs abd deletes Admin tables if they can be deleted.
  3.  
  4.     Dim tb As DAO.TableDef
  5.  
  6.     On Error GoTo Err_Proc
  7.  
  8.     dbLocal.TableDefs.Refresh
  9.  
  10.     For Each tb In dbLocal.TableDefs
  11.         If Left(tb.Name, 7) = "Admin -" Then
  12.             Debug.Print tb.Name
  13.             DoCmd.Close acTable, tb.Name, acSaveNo
  14.             DoCmd.DeleteObject acTable, tb.Name
  15.         End If
  16.     Next tb
  17.  
  18. Exit_Proc:
  19.     Exit Sub
  20. Err_Proc:
  21.     Select Case Err.Number
  22.         Case 3211 'In use.
  23.             'When the table(s) is created it is in use for the whole session and can't be deleted
  24.             Resume Next
  25.         Case Else
  26.             MsgBox "Error " & Err.Number & " " & Err.Description, vbCritical, _
  27.                 "sAdminOracleTablesRemove", Err.HelpFile, Err.HelpContext
  28.             Resume Exit_Proc
  29.     End Select
  30. End Sub

4 3447
NeoPa
32,556 Expert Mod 16PB
I'm trolling back through a number of years' memory here, but I believe there might be two situations where Admin files are created. One is the logging of errors encountered, but the other is the storing of messages explicitly displayed by the SQL routine itself.

If I'm correct, then the contents of the table will give clues as to what's happening.

Unfortunately, I no longer deal with any of the databases or servers I was working on at that time so I can't even check for you to confirm my recollection is on track. See what you can see though.
Jul 26 '11 #2
nico5038
3,080 Expert 2GB
Hmm, would start with trying to prevent the creation of these warnings.
They point to an error in a query, so why not solve that to stop this table creation ?

Nic;o)
Jul 26 '11 #3
Hi everyone, it's two+ years later, an absence from work and job change and I'm back at this application now. My apologies to respondents and especially to people with similar issues coming across this topic item via a search engine for inconsiderately leaving this so late - laziness on my part and stupidity for losing track of the myriad forums in which I lurk or participate.

The "Admin" part of these tables is explained at the bottom of the following link for A2007:

http://office.microsoft.com/en-ca/ac...010206488.aspx

I have confirmed this is a Win 7 problem that id not exist in Win XP. There is no issue with respect to the SQL, Oracle, via Pass through query, or Jet. I have confirmed that it happens when an Oracle varchar2(2000) field from the pass through query is inserted (append) into a a jet table. The message in the Admin table, under the single field called ODBC, is:

01004 - 0 - [Oracle][ODBC]String data, right truncated.

The creation of the table does not occur when the SQL (constructed in VBA) omits the varchar2(2000) field. There are many other varchar2 fields, ranging in size from 3 to 100.

The data in the pass through query and the Jet table match exactly and there is no data in any row or column in either that does not match the other.

So this tells me that the Oracle server, via the ODBC driver, is sending me messages about what has been done to the data, but thee messages are not errors.

So, so far, no solution other than the following proc to be run in an appropriate place such as the procedure that creates the mentioned Oracle query and inserts results into a local table:

Expand|Select|Wrap|Line Numbers
  1. Public Sub sAdminOracleTablesRemove()
  2. 'Goes through tabledefs abd deletes Admin tables if they can be deleted.
  3.  
  4.     Dim tb As DAO.TableDef
  5.  
  6.     On Error GoTo Err_Proc
  7.  
  8.     dbLocal.TableDefs.Refresh
  9.  
  10.     For Each tb In dbLocal.TableDefs
  11.         If Left(tb.Name, 7) = "Admin -" Then
  12.             Debug.Print tb.Name
  13.             DoCmd.Close acTable, tb.Name, acSaveNo
  14.             DoCmd.DeleteObject acTable, tb.Name
  15.         End If
  16.     Next tb
  17.  
  18. Exit_Proc:
  19.     Exit Sub
  20. Err_Proc:
  21.     Select Case Err.Number
  22.         Case 3211 'In use.
  23.             'When the table(s) is created it is in use for the whole session and can't be deleted
  24.             Resume Next
  25.         Case Else
  26.             MsgBox "Error " & Err.Number & " " & Err.Description, vbCritical, _
  27.                 "sAdminOracleTablesRemove", Err.HelpFile, Err.HelpContext
  28.             Resume Exit_Proc
  29.     End Select
  30. End Sub
Oct 29 '13 #4
NeoPa
32,556 Expert Mod 16PB
Nice post Tim. Essentially though, the table is created by Access automatically when any feedback is provided by the back end system. This makes sense when you consider that there is not any more appropriate way to allow this information to get back to the user as the request is between two automated processes (One of which being the Oracle, or other SQL, server).

The particular message you are encountering may be unique to Win7, but the concept of handling messages that way is standard behaviour for Access.
Nov 1 '13 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: valexena | last post by:
How can I improve performance of queries on tables containing all words in the dictionary starting with the letter ‘S’? -- Posted via http://dbforums.com
3
by: Stephen | last post by:
It is possible to relate queries to tables, right? It seems logical but when I try to match my queries to any of the tables or even to each other it gives me a blank relationship. What could I...
0
by: gbradford3 | last post by:
I can pull up an MS Access database, link DB2 tables to it (using a System DSN) and create queries that return differences between a MS Access table and a DB2 table. I am able to query both the MS...
2
by: =?Utf-8?B?QW5qYW5h?= | last post by:
Hello we creating a web application in ASP .net 2.0. we are trying to read font file path from registry as below Microsoft.Win32.RegistryKey registryKeyParen registryKeyChild =...
7
by: n00b | last post by:
I have a database in which Access is automatically generating a sequence of Admin tables. It is due to the ODBC error (which I haven't found yet) listed in the table. Access seems to generate...
0
by: chubbardsr | last post by:
The most recent problem that i am running in to lately is Access being DPI aware with Vista. Has anyone see any fixes to making the database when opened DPI aware to prevent Vista from changing...
1
by: timn | last post by:
Translating Access SQL queries into SQL subqueries. -------------------------------------------------------------------------------- I have a query in Access that uses a subquery, I would like...
3
by: Yin99 | last post by:
I have a recordset that is created via: Dim rs As Recordset Set rs = Me.RecordsetClone which if I understand correctly fills the recordset with the form's recordsource. Now if I run the vb...
2
by: Angahran | last post by:
I'm hoping someone can help me. I was trying to backup our eqdkp database and managed to remove all the admin access from the admin account :( I cannot use phpmyadmin or mysql to directly access...
1
by: Imacyn | last post by:
This is a question from a lady that knows very little about the subject. Please someone answer to help me save my model hobby photo program. The current server my files are on, the ISP no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.