Viewing 15 posts - 166 through 180 (of 249 total)
-- 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
...
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...
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...
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...
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...
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...
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...
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. ...
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...
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...
December 18, 2003 at 10:57 am
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...
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...
December 10, 2003 at 8:47 am
If the insert is large, perhaps it can be broken up into several inserts to keep the transaction size reasonable.
November 26, 2003 at 9:02 am
Because it works in QA, it must be DTS related. Is the package scheduled to run as a job? Did you check the process? Any blocking? ...
November 25, 2003 at 8:53 am
Viewing 15 posts - 166 through 180 (of 249 total)