Viewing 15 posts - 3,856 through 3,870 (of 7,191 total)
How about this?
SELECTCAST(LEFT(CounterDateTime, 23) AS SmalldateTime)
FROMCounterData
John
September 3, 2013 at 4:44 am
Awesome! Thanks for the in-depth analysis, Hugo, and for being more generous to me than I think I deserved. The first time I saw the queries, I assumed...
September 3, 2013 at 4:36 am
That suggests that the problem lies in what comes after the decimal point. What does this return?
SELECT LEN(CounterDateTime), COUNT(*)
FROM CounterData
GROUP BY LEN(CounterDateTime)
John
September 3, 2013 at 3:43 am
What does this return?
SELECTCounterDateTime
FROMCounterData
WHEREISDATE(CounterData) = 0
John
September 3, 2013 at 3:14 am
This is one of the problems with storing dates with the wrong data type. Not a criticism of you, since this probably isn't your design.
You only need one of...
September 3, 2013 at 2:53 am
Rune Bivrin (9/3/2013)
Just look at the execution plan and tell me if there is no difference.
There's very little difference. On SQL Server 2008 R2 SP2, there was an extra...
September 3, 2013 at 2:46 am
Could it be a rounding error?
John
September 3, 2013 at 2:31 am
First, you need a table with all those August dates in it. Do you already have one? If not, you can create a permanent one or use a...
August 30, 2013 at 3:34 am
I think the only way is to make the user the owner of the databases in question. From the documentation:
If the database being restored does not exist, the user...
August 30, 2013 at 2:43 am
Looks serious. Use your favourite search engine to investigate this error: SqlDumpExceptionHandler: Process 54 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process. You may have...
August 29, 2013 at 9:05 am
Posting exactly the same thing again doesn't alter the fact that it's from SQLAGENT.OUT, not from the SQL Server errorlog. From the Access Denied error, I'd say you've got...
August 28, 2013 at 4:46 am
Mark-101232 (8/28/2013)
Is there some significance in 'AA' in Danish/Norwegian? It seems to sort after 'Z'
Yes, I think you've nailed it. Take a look at the very bottom line of...
August 28, 2013 at 4:38 am
That's telling you that SQL Server Agent stopped because SQL Server stopped unexpectedly. To find out why SQL Server stopped, try the SQL Server errorlog or the Windows event...
August 28, 2013 at 4:14 am
I didn't get that. What is your server collation set to?
John
August 28, 2013 at 2:36 am
So you don't want XXX to be able to change YYY's permissions? Start by removing XXX from sysadmin. What do you want XXX to be able to do?
John
August 28, 2013 at 1:30 am
Viewing 15 posts - 3,856 through 3,870 (of 7,191 total)