Viewing 15 posts - 31 through 45 (of 102 total)
No, unfortunately, we really don't have an in-house DBA - hence my trying to get some insight here. We have a person that 'runs' things for us but they really...
March 7, 2011 at 2:21 pm
No, I am just a developer w/ dbo. Maybe that makes a difference?
March 7, 2011 at 1:54 pm
When I do this....
select * from master..sysprocesses
I just get one row.
When I do this:
SELECT spid, blocked, waittime, lastwaittype FROM master..sysprocesses
where SPID = 81
I get:
8100MISCELLANEOUS ...
March 7, 2011 at 12:35 pm
"Also, during the day, run this query and check the wait_state for the SPID and see what you get. It'd help to know why it thinks it's stuck. "
I apologize...
March 7, 2011 at 11:52 am
Here are the indexes:
However, just running the primary select statment just then took me 1:17 to return 14,765 rows. BUt, again, am I barking up the wrong tree if I...
March 7, 2011 at 11:37 am
Here's where I created the view OK:
CREATE VIEW [dbo].[RTV_CURRENT_TRIP] (car_init, car_no, maxRTTRIPshipdatetime)
WITH SCHEMABINDING
AS
SELECT RT_TRIP.car_init, RT_TRIP.car_no, max(RT_TRIP.ship_date_time) maxRTTRIPshipdatetime
FROM dbo.RT_TRIP
GROUP BY RT_TRIP.car_init,
RT_TRIP.car_no
But I get an error when trying to create a...
March 7, 2011 at 9:46 am
I can research how to do this. In essence, just replace my current view by creating an indexed view?
March 5, 2011 at 1:26 pm
I tried to create an index on the view but it wouldn't let me - I can't remember the msg I got. Is this what you are recommending? If so,...
March 5, 2011 at 1:13 pm
I added the index you suggested and no noticeable difference. I will drop it then add it again tomorrow and test when the users are hitting the DB harder to...
March 3, 2011 at 9:48 pm
OK, maybe I'm off on the wrong track here and someone can help me. The query I am running is coming from a proc. When I first ran the proc...
March 3, 2011 at 8:13 pm
I've attached the exec plan. Is there a way to do the indexes easily or do I have to do them 1 by one?
March 3, 2011 at 5:55 pm
There are 15 Non-Unique, Non-Clustered indexes on RT_TRIP. I don't know how to get the execution plan in text - in only shows up graphically.
***** RT_TRIP DEF
CREATE TABLE [dbo].[RT_TRIP](
[car_init] [char](4)...
March 3, 2011 at 3:58 pm
Duh...sorry, didn't realize it was that simple. Thanks.
February 16, 2011 at 3:31 pm
Viewing 15 posts - 31 through 45 (of 102 total)