Viewing 4 posts - 1 through 4 (of 4 total)
I tried updating statistics on the table and that had no effect however changing the MAXDOP to 1 allowed the rebuild statement to complete so I have a work around...
July 7, 2011 at 7:34 am
Here is how the MAXDOP is calculated.
Select @CPUS = cpu_count / hyperthread_ratio
from sys.dm_os_sys_info;
SET @RebuildParams = 'SORT_IN_TEMPDB = ' + @TEMPDB + ', ONLINE = ' + @Online + ',...
July 7, 2011 at 7:27 am
I found the problem. One of the joins in a view the vendor created uses the user_id() function. When you do a select from the view from a different database...
July 8, 2009 at 7:13 am
Still the same result. If the developers run the query from the vendor database they get rows back, if they run the query from the database we created no rows...
July 7, 2009 at 7:18 am
Viewing 4 posts - 1 through 4 (of 4 total)