Re: Adox Views in Access97
- From: "Bob Barrows [MVP]" <reb01501@xxxxxxxxxxxxxxx>
- Date: Tue, 19 Jun 2007 06:46:13 -0400
sosoft wrote:
Hi,I don't understand why you're dropping and recreating views. You may as well
I'm using VB6 with ADO/ADOX 2.8 and Access97 Databases.
i create any views with Adox in runtime and use they in
Ado.recordsets with the same connection.
existing views will be deleted and new created.
in debugmode works all without problems
in release i get time by time errors. "view ... alredy exists" or
"view does not exists" (but in database is all korrekt)
what can i do?
just be using ad hoc queries.
Are you sure you couldn't be using parameterized saved queries to avoid this
overhead?
Provide a short example of how you are using these views so we can offer
suggestions. Views are intended to be long-lasting, if not permanent,
objects in a database. They are intended to encapsulate sql that is re-used.
Having never attempted to do what you are doing, I am at a loss to
understand the problem you are running into. It sounds as if the view is
failing to be dropped when you intend it to be. You may be running into the
delayed-write optimization used by Jet:
http://support.microsoft.com/kb/200300
http://support.microsoft.com/?kbid=240317
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
.
- Prev by Date: Re: ADODB Recordset and Connection
- Next by Date: Re: ADODB Recordset and Connection
- Previous by thread: adodb and active directory
- Next by thread: Re: French, German, Italian SQL Query via ADO
- Index(es):
Relevant Pages
|
|