Results 1 to 5 of 5
  1. #1
    mirthcyy is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    3

    linked table long query not working


    I have an access program that have been using linked table through ODBC connection to our SQL Server database. When I sent a query through Access, the Access sometimes just stop responding. It seems if I select too many columns, it will stop working. I'm not sure if the query string is too long (about 500/600 charaters). Could you please let me know how to fix that? Thanks.

  2. #2
    Icewolf0927 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    13
    I have actually seen this a couple of times. I have found out that even though it might say that it is not responding it really is still working in the back. I would leave it run for awhile and see if it work. The other thing is you might want to break up the queries into smaller ones this might help too.

  3. #3
    mirthcyy is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    3
    Quote Originally Posted by Icewolf0927 View Post
    I have actually seen this a couple of times. I have found out that even though it might say that it is not responding it really is still working in the back. I would leave it run for awhile and see if it work. The other thing is you might want to break up the queries into smaller ones this might help too.
    I've let it run for over 30 minutes and I also did the trace on sql server and didn't see the query's running. So I don't think it actually runs the query.

    The query runs fine when I select a few columns but if I select more columns it just stops working. It's not a particular column that makes it stop since I tried different combinations.

  4. #4
    Icewolf0927 is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    13
    How big is the table you are pulling from? I have to let things run over night in some cases. Have you tried importing the tables that you need to query from? I have been at some clients sites that had to switch to a different applications to pull queries from sql tables because access was too slow. If you are interested in switching to something else you could try Hyperion I believe that is free software that you could use. I know that Toad works pretty well too. There are also some sql programs out there you could use.

  5. #5
    mirthcyy is offline Novice
    Windows XP Access 2003
    Join Date
    Sep 2010
    Posts
    3
    Quote Originally Posted by Icewolf0927 View Post
    How big is the table you are pulling from? I have to let things run over night in some cases. Have you tried importing the tables that you need to query from? I have been at some clients sites that had to switch to a different applications to pull queries from sql tables because access was too slow. If you are interested in switching to something else you could try Hyperion I believe that is free software that you could use. I know that Toad works pretty well too. There are also some sql programs out there you could use.
    The table is big but I'm only pulling just few hundreds rows of data. If I select fewer columns, it will return in seconds. If I add a few more columns, it will not return. I don't think adding a few columns (simple data type columns, not xml or nvarchar(max)) should make such a difference in terms of query execution time. I just try to create a simple and quick interface (use access forms and some VBA scripts) to let non-technical people run some reports. Hyperion is good but I have to develop and deploy reports. Much more complex. For Toad, I can't create a nice interface. Thanks for suggestions though.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Update Query too long
    By ack9f in forum Queries
    Replies: 3
    Last Post: 04-26-2010, 12:11 PM
  2. Linked table Query based form
    By sesproul in forum Forms
    Replies: 1
    Last Post: 01-21-2010, 08:46 PM
  3. Replies: 3
    Last Post: 01-21-2010, 08:10 PM
  4. Replies: 2
    Last Post: 10-27-2009, 07:09 AM
  5. Query on a linked table?
    By SilverSN95 in forum Queries
    Replies: 1
    Last Post: 09-26-2009, 03:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums