Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Querydef documentation!!!

Status
Not open for further replies.

MichaelRed

Programmer
Dec 22, 1999
8,410
US
Probably unimportant. MS has slightly shaded the truth re temporary (un named querydef objects. The Docs saay these are not saved. Not True. They are saved until the next compact / repair operation. Perhaps in the grand scheme this (the saving) is necessary.

To see this, create an unnamed query def (you do not have to actually execute it). open a new (standard) query:

Code:
SELECT MSysObjects.Name, MSysQueries.Attribute, MSysObjects.DateCreate, MSysObjects.DateUpdate, MSysQueries.Expression, MSysQueries.Name1, MSysQueries.Name2
FROM MSysQueries LEFT JOIN MSysObjects ON MSysQueries.ObjectId = MSysObjects.Id
WHERE (((MSysObjects.Name) Like "~TMPCLP*"))
ORDER BY MSysObjects.Name, MSysQueries.Attribute, MSysObjects.DateCreate;

the items shown include the unnamed query defs. Compact and repir the db and re-run the standard query - this presents an empty recordset!! QED



MichaelRed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top