Viewing 15 posts - 166 through 180 (of 921 total)
Try something like this:
WHERE ChkDate LIKE 'Jan 6 2004%'
January 27, 2004 at 3:58 pm
This is a good book:
http://msdn.microsoft.com/library/en-us/dnnetsec/html/secnetlpMSDN.asp
January 27, 2004 at 1:55 pm
See Books OnLine: Database Object Owner. If a third user also created a table named Customers, which would you have the system automagically use?
January 27, 2004 at 12:45 pm
You are looking at cumulative counts for a process that has been running since the Agent service was started. I doubt this is relevant to system performance.
January 27, 2004 at 7:54 am
UPDATE o SET Status = 'SO'
FROM Orders o JOIN
(SELECT DISTINCT OrderId
FROM OrderLines l
WHERE NOT EXISTS
(SELECT *
FROM OrderLines
WHERE OrderId = l.OrderId
AND Status <> 'SO')) d ON o.OrderId = d.OrderId
WHERE Status <> 'SO'
January 27, 2004 at 7:47 am
Simply turn on Query|Show Execution Plan in QA, run both queries in the same batch, and then compare the relative times in the Execution Plan window. Try my variant with...
January 26, 2004 at 2:56 pm
Okay, I see why that "correlated derived table" works. It doesn't need to be a derived table, and the query optimizer automatically reduces it to a simple correlated subquery.
January 26, 2004 at 2:53 pm
Yes, if you mean your queries are timing out, then use the Timeout property of the command object. If you set this to 0 (the default in Query Analyzer), there...
January 26, 2004 at 5:58 am
January 23, 2004 at 4:38 pm
I'm with you. Having the model as Full allows you to make a tran log backup when disaster strikes and be a hero by recovering more than just the previous...
January 23, 2004 at 4:33 pm
Could you post the example of the correlated subquery used as a derived table? I thought derived tables are not evaluated dependently... The only time...
January 23, 2004 at 4:21 pm
Yes, you do need a self-join. Something like this:
SELECT LTRIM(a.ID) + '-' + a.Descr AS ID_Desc, LTRIM(b.ID) + '-' + b.Descr AS Parent_Desc
FROM YourTableName a JOIN YourTableName b on b.ID =...
January 23, 2004 at 3:55 pm
It looks like the sort of bug where the parser designers never tested a correlated derived table in a select list used with...
January 23, 2004 at 3:44 pm
Well, I wouldn't use this, so treat it as an example:
Sub AlterProcs(sDatabase As String, sOldColName As String, sNewColName As String)
Dim objServer...
January 23, 2004 at 2:41 pm
Viewing 15 posts - 166 through 180 (of 921 total)