Viewing 15 posts - 4,006 through 4,020 (of 5,590 total)
Please post the actual execution plan for this query.
See the link "Performance Problems" in my signature for how to do this.
June 9, 2010 at 6:55 am
Does this work for you?
I'm not sure that I follow what it is you are attempting. Why not just insert all the data in one set?
;WITH CTE AS
(
Select ...
June 9, 2010 at 6:43 am
And you shouldn't be going around shrinking the tlog either. It grew for a reason, and unless you eliminate that reason, it will just continue to re-grow. By doing regular...
June 9, 2010 at 6:38 am
Replace the entire CTE and UPDATE statement with:
UPDATE b
SET b.Cost = (SELECT TOP 1 Charge
...
June 9, 2010 at 6:33 am
wrt the log file... I think the give-away here was the wording it "will be a lot smaller".
This implies that it is 100% certain to be so - and in...
June 8, 2010 at 8:43 pm
Lowell (6/8/2010)
June 8, 2010 at 8:13 pm
Leo.Miller (6/8/2010)
June 8, 2010 at 8:12 pm
What happens if you try this?
DECLARE @command varchar(1000)
SELECT @command = 'IF ''[?]'' NOT IN (''[master]'', ''[model]'', ''[msdb]'', ''[tempdb]'')
SELECT name as...
June 8, 2010 at 4:51 pm
Steve,
I realize that you're pretty new to this web site. Please realize that we are all un-paid volunteers. Providing the DDL scripts (CREATE TABLE, CREATE INDEX, etc.) for the tables...
June 8, 2010 at 4:36 pm
The error message that I get is:
TITLE: Microsoft SQL Server Management Studio
------------------------------
Error connecting to '<my server>'.
------------------------------
ADDITIONAL INFORMATION:
Timeout expired. The timeout period elapsed prior to completion of the operation or...
June 8, 2010 at 4:30 pm
Please read the best article ever written for running totals on SQL Server[/url] by MVP Jeff Moden.
If you still need assistance, please read the first link in my signature for...
June 8, 2010 at 2:12 pm
For rows where Field9 contains "User Account Created", there are no "Target Domain" or "Target Account ID" "columns" - they are "New Domain" and "New Account ID". Change those strings...
June 8, 2010 at 9:03 am
Dept is probably a string, and thus needs to be enclosed in quotes.
SQLstr = "Select Distinct TM from PCTTS_TIME_Results where Dept = '" + Me.DropDownListDept.SelectedValue.ToString + "' order by TM"
...
June 7, 2010 at 5:39 pm
Viewing 15 posts - 4,006 through 4,020 (of 5,590 total)