Re: repetitive query to sysobjects in an ADP



fluow


that was really really really helpful information.

thank you SO much

-Aaron


flouw wrote:
SQL 2000 was slow because of sp_tables. We implemented a modified sp_tables
in our application database that does not resolve Active Directory since we
control application access through the menu structure of the ADP and users
have no access to the db window. The first time so anything on the
connection to SQL 2000, you will notice a call to sp_tables that can be
really slow. I cannot comment on SQL 2005.

"Dee_J" wrote:

When I open an SQL 2005 table from within the ADP, it takes 3-4 minutes to
open it. This happens only once, and only for the first table that will be
opened.
Looking in the profiler I see 100's of statements like this:

select object_name(sotblfk.id), user_name(sotblfk.uid),
object_name(sotblrk.id), user_name(sotblrk.uid) from sysreferences srfk,
sysobjects sofk, sysobjects sotblfk, sysobjects
sotblrk where srfk.constid = sofk.id and srfk.fkeyid = sotblfk.id and
srfk.rkeyid = sotblrk.id and user_name(sofk.uid) = N'dbo' and
object_name(sofk.id) = N'FK_Purchase Order
Analysis_Purchase Order'

Apparently access is querying the system table for every single relationship
in the database.
Does anybody have a solution for this?

By the way the same thing happens to the same db but on SQL 2000. However
for some reason the querying is much faster in SQL2000 and the first table
opens up after about 1 minute.

Thanks
Dimitris

.



Relevant Pages

  • Re: Retrieve SQLserver table list
    ... you will get a list of tables in the SQL CE database ... Alex Feinman ... >> You can just use SysObjects if you're after full sql server, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Create DBF
    ... Can anyone provide me any direction on creating a DBF output from data ... stored in a SQL CE database. ... I am querying the data through vb.net and need ...
    (microsoft.public.dotnet.framework.compactframework)
  • Create DBF
    ... Can anyone provide me any direction on creating a DBF output from data ... stored in a SQL CE database. ... I am querying the data through vb.net and need ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: dbdebunk Quote of Week comment
    ... > a lot of really bad SQL programmers. ... But SQL does not have a pointer data type or the ... > being told to design a database. ... But why is little Cindy Lou Who employee ...
    (comp.databases.theory)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)