Viewing 15 posts - 166 through 180 (of 252 total)
Here is another batch that includes the buggy result. In the last query, the output has the same number of records as in #temp (776937) rather than 1. This is...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 26, 2004 at 5:28 pm
...and thanks for the tip. These queries are fast enough that comparing relative times in one batch via the execution plan window is nice.
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 26, 2004 at 5:11 pm
-- Query 1: Query Cost (relative to batch): 48.89%
SELECT c.defendant_sid,
count(*) as [count],
CAST(MIN(c.calendar_time) as char(20)) as [MIN(calendar_time)],
( SELECT CAST(MIN(t.calendar_time) as char(20))
FROM #temp t
...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 26, 2004 at 5:09 pm
Here it is one more time - my post gets lost from time to time....
The developer simplified the problem by removing the derived table. I think this is the best...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 26, 2004 at 4:49 pm
StmtText
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SELECT c.defendant_sid,
count(*) as [count],
CAST(MIN(c.calendar_time) as char(20)) as [MIN(calendar_time)],
( SELECT CAST(MIN(t.calendar_time) as char(20))
FROM #temp t
WHERE t.defendant_sid = c.defendant_sid
) as...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 26, 2004 at 2:22 pm
I took a look at the execution plans for the example code included above. They both use parallelism, but the second one (with the problem) is more complicated and has...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 26, 2004 at 2:19 pm
I think I'll skip the derived table. I can never tell what I'm going to get from the developers
. The original query...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 23, 2004 at 4:03 pm
See Q295371: PRB: Filegroup Log Restore May Fail with Error Message 4305
Error Messages
SQL Server 2000
Server: Msg 4305, Level 16, State 1, Line 2
The log in this backup set begins at...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 23, 2004 at 9:36 am
It's good to use cached data, but only if it's not stale. It would be interesting to select from a table with a computed column based on GetDate(). The cached...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 22, 2004 at 10:56 am
Are you sure the connection is failing from QA? Stress related TCP/IP socket issues, for example, are typically sporadic - Q328476. Otherwise, perhaps DBCC FREEPROCCACHE might force it to refresh. ...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
January 22, 2004 at 9:41 am
quote:
Look for the linegoPackage.SaveToSQLServerin the VB file. Check Books Online for the full syntax. Be aware that you'll...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
December 18, 2003 at 3:56 pm
The second to last menu item in the "Package" menu is "Disconnect Edit...". It lets you edit various properties of connections, tasks, and work flow. I sometimes use...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
December 18, 2003 at 10:57 am
I didn't get a second chance.
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
December 17, 2003 at 1:16 pm
I did answer the first question correctly, but not the second. I assumed that the email would have the same question as the question in the link. Guess...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
December 17, 2003 at 8:04 am
As a test, I would try a RAISERROR('trigger', 16, 1) in the trigger and catch the error after the query directly invoking the trigger. Perhaps your error is not...
RandyHelpdesk: Perhaps Im not the only one that does not know what you are doing. 😉
December 10, 2003 at 8:47 am
Viewing 15 posts - 166 through 180 (of 252 total)