Karl Blessing
Programmer
I have a web application I've been working on thus far it seemed great, the activeX dll behind the scenes gathers up information, puts together a query (a simple one at that) and when doing a lookup/crosswalk query (like if you have a UniqueID and you have a seperate table that defines what those UId are, you can do a query to line up the ID next to the descript)
in enterprise manager, this seems to come back within 5-10 seconds of executing , especially after the SQl Admin put a index on the specific field I needed, however it still comes back 4 minutes after running the query fromt he ActiveX dll, (the Web application times out before it can come back, and the client application using the same dll, does come back but after 4 minutes of waiting) and this is just waiting for TWO records to come back.
The table is huge however, it's running on SQL Server 6.5 , I do belive they rebuilt the indexes last week, so indexes should not be a problem, the table contains about half a million records.
this is the example of the query
empdb being the really large table
and stfipstb being the crosswalk/lookup table containing only 3 columns of about 30 records.
the query above comes back with 2 records in Ent manager (10 seconds) , and in the client (4 minutes), but times out on the web application, and I've been told by my employer that it might be possible, in the way that SQL handles database activity from dlls and web application, than it does direct users, and off-server clients.
anyone have any clue on how to speed this process up?
Any hints would be helpful.
Let me know if you need more info (I was going to post the VB Code that calls it, but this is a SQL Forum, and also the call in the DLL was a very simple Rs.open query, conn, static, optomisticlock, and thats whats taking so long, is just simply opening it) Karl Blessing aka kb244{fastHACK}
in enterprise manager, this seems to come back within 5-10 seconds of executing , especially after the SQl Admin put a index on the specific field I needed, however it still comes back 4 minutes after running the query fromt he ActiveX dll, (the Web application times out before it can come back, and the client application using the same dll, does come back but after 4 minutes of waiting) and this is just waiting for TWO records to come back.
The table is huge however, it's running on SQL Server 6.5 , I do belive they rebuilt the indexes last week, so indexes should not be a problem, the table contains about half a million records.
this is the example of the query
Code:
Select DISTINCT empdb.stfips, stfipstb.stname, stfipstb.abbrev from empdb, stfipstb where empdb.stfips=stfipstb.stfips Order by empdb.stfips DESC
empdb being the really large table
and stfipstb being the crosswalk/lookup table containing only 3 columns of about 30 records.
the query above comes back with 2 records in Ent manager (10 seconds) , and in the client (4 minutes), but times out on the web application, and I've been told by my employer that it might be possible, in the way that SQL handles database activity from dlls and web application, than it does direct users, and off-server clients.
anyone have any clue on how to speed this process up?
Any hints would be helpful.
Let me know if you need more info (I was going to post the VB Code that calls it, but this is a SQL Forum, and also the call in the DLL was a very simple Rs.open query, conn, static, optomisticlock, and thats whats taking so long, is just simply opening it) Karl Blessing aka kb244{fastHACK}
