Viewing 15 posts - 1 through 15 (of 29 total)
We've recently experienced this problem and found a solution that appears to have resolved the issue.
We were running SQL Server 2008 (10.0.4000), but the database in question was in compatibility...
September 13, 2011 at 1:30 am
...in fact, I think I'm there:
SELECT LEN(column)
FROM tablename
WHERE LEN(column) > 0
ORDER BY LEN(column) DESC;
I ended up converting the TEXT datatype on that column to VARCHAR(MAX) first, and then re-trying one...
August 11, 2011 at 2:51 am
Thanks - I actually resolved the errors in the end by mapping the user (in my case, the SQL Service domain account) to the database. Doh!
July 12, 2011 at 9:48 am
I experienced this exact same issue today - did you ever find a resolution?
July 8, 2011 at 9:52 am
Gianluca Sartori (5/24/2011)
Phineas Gage (5/24/2011)
... sp_MSforeachdb tends to miss databases every now and again.Hmmm, I didn't know this. Do you have a reference?
It's something that I've read every now...
May 24, 2011 at 4:37 am
Thanks Gianluca.
I usually steer clear of undocumented procedures, particularly as sp_MSforeachdb tends to miss databases every now and again. However, in this case, I may have to conceed.
Any other suggestions?
May 24, 2011 at 4:17 am
I've actually considered using Ola's script, given it's popularity. However, I like to make sure I understand all of the scripts that I use and I sure ain't at Ola's...
May 24, 2011 at 3:22 am
Hi All
Sorry to drag this one up from the depths again, but I seem to have run into a problem...
After this post, I set up a single test mirrored database...
May 4, 2011 at 6:21 am
ChrisM@home (4/18/2011)
declare @Last7Days CHAR(8)
SELECT @Last7Days = CAST(YEAR(CURRENT_TIMESTAMP - 7) * 10000 + MONTH(CURRENT_TIMESTAMP - 7) * 100 + DAY(CURRENT_TIMESTAMP - 7) AS CHAR(8))
SELECT ...
WHERE table-name-removed...
April 18, 2011 at 9:07 am
ChrisM@home (4/18/2011)
@ninja - good spot, mate - you saw this coming...
April 18, 2011 at 8:57 am
Just tried it with single-quotes and it completes in 1 sec.
I'm not being argumentative - I just want to understand why he suggested it for my own benefit, that's all.
Again,...
April 18, 2011 at 8:51 am
No...why's that? The query completed fine with and without them.
Just to clarify - I can get the query to complete quickly if I specify the date 7 days ago. However,...
April 18, 2011 at 8:47 am
ChrisM@home (4/18/2011)
How long does it take to run this:
WHERE table-name-removed >= '20110411'
1 second...see comments above
April 18, 2011 at 8:43 am
Ninja's_RGR'us (4/18/2011)
Update stats with fullscan if possbile.If stats are out of data the plan will be wrong (especially for that case).
Could also be parameter sniffing.
Thanks very much - updating the...
April 18, 2011 at 8:32 am
Hi Lowell,
Hmmm...gave your suggestion a try, but the query is still taking 2 mins to complete. To make sure I'm not going mad, I again tried:
WHERE table-name-removed >= 20110411 (date...
April 18, 2011 at 7:47 am
Viewing 15 posts - 1 through 15 (of 29 total)