Viewing 15 posts - 841 through 855 (of 1,192 total)
ScottPletcher (9/1/2015)
Jacob Wilkins (9/1/2015)
ScottPletcher (9/1/2015)
Jacob Wilkins (9/1/2015)
SELECT queries against...
September 1, 2015 at 1:13 pm
ScottPletcher (9/1/2015)
Jacob Wilkins (9/1/2015)
SELECT queries against temporary tables typically...
September 1, 2015 at 12:51 pm
I know it's rather off-topic, but it's an interesting diversion, so I thought I'd just chime in on NOLOCK and temporary tables.
SELECT queries against temporary tables typically only take a...
September 1, 2015 at 12:11 pm
I'm actually working on my first QotD submission, coincidentally enough. From those of you who have done it before, is there a way to preview what the submitted question will...
August 31, 2015 at 1:43 pm
Perhaps something like this?
SELECT
Userid,
Cartid,
pay=SUM(CASE WHEN ActionType=1 THEN pay ELSE 0 END),
Back=SUM(CASE WHEN ActionType=2 THEN pay ELSE 0 END),
Pure=SUM(CASE WHEN ActionType=2 THEN -pay ELSE pay END)
FROM P INNER JOIN...
August 31, 2015 at 8:59 am
Lynn Pettis (8/28/2015)
mar.ko (8/28/2015)
Lynn Pettis (8/28/2015)
My biggest pet peeve! The semicolon is a terminator, not a begininator. It belongs at the end of statements not the beginning.
Exactly, another...
August 28, 2015 at 11:20 am
Sean Lange (8/26/2015)
August 26, 2015 at 9:22 am
I wasn't so much interested in the log_reuse_wait_desc, as that's just getting pulled from the primary. I included it just to be sure about that piece. I was more interested...
August 24, 2015 at 12:17 pm
That is interesting. When run from the primary, what does this query show for the database in question on each replica?
SELECT arcs.replica_server_name, d.name, d.log_reuse_wait_desc, drs.log_send_queue_size,drs.redo_queue_size
FROM master.sys.databases d
INNER JOIN master.sys.dm_hadr_database_replica_states drs
ON...
August 24, 2015 at 12:09 pm
That indicates that data movement for that database from the primary to the secondary is not occurring, either because it's disconnected or movement has been suspended.
I'd check to make sure...
August 24, 2015 at 11:51 am
You're already in a good spot for the fix with Gail's excellent advice.
Just for a bit of explanation in case you're curious, that is expected even with just the value...
August 24, 2015 at 9:08 am
A couple questions that are worth covering, even though they seem a bit silly:
1) Are you perhaps looking at Program Files, and not Program Files (x86), or vice versa?
2) Are...
August 21, 2015 at 9:56 am
Are there supposed to be duplicates in the data? It seems that this row is repeated:
SELECT 140675887, 072915205, 1580, 'D'
Cheers!
EDIT: Fixed a typo.
August 20, 2015 at 3:58 pm
If that's the exact query you're trying to run, then you have a comma after the last expression you're selecting, so you'd want to remove that.
Cheers!
August 20, 2015 at 9:44 am
My apologies, but I'm not really following what you're saying.
Perhaps it would be best if you posted a small sample data set for this thread that illustrates the incorrect results...
August 20, 2015 at 8:51 am
Viewing 15 posts - 841 through 855 (of 1,192 total)