If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Progress - Counting Rows (Through ODBC)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-02-04, 05:25
Rattea Rattea is offline
Registered User
 
Join Date: Nov 2003
Location: Derby
Posts: 5
Thumbs down Progress - Counting Rows (Through ODBC)

I am trying to perform a simple count on Progress tables using SQL through ODBC from SQL Server. This is taking and age and often times out waiting for progress to return. I am having a particular problem with a table that currently contains 2.5m+ rows.

I have tried returning all the rows and doing the count on the SQL Server side. This does improve the time dramatically but still takes to long.

IE
SELECT COUNT(*)
FROM OpenQuery(<LinkedServer>,'SELECT 1 FROM <BigTable>')

Is there a progress funtion or table that contains this information in progress that I can use?

I would be very grateful if anyone could offer some advice.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On