Viewing 15 posts - 1 through 15 (of 186 total)
This looks really cool. Does it work with Azure? I can't test at work but definitely will when i get home.
October 28, 2016 at 6:30 am
Looks like I have version 8.05.2309 on my machine...
November 29, 2012 at 1:53 pm
rituchaudhary.work (11/8/2012)
thanks for the prompt reply but no good..I ran the query after adding the brackets but still got the same error..while the query is running fine on another server...
November 8, 2012 at 6:38 am
rituchaudhary.work (11/7/2012)
I ran the script and it was giving desired results but in some of the servres it threw the below error:
Msg 207, Level 16, State 1, Line 89
Invalid column...
November 7, 2012 at 7:41 am
What does the "query text" have to do with the stored procedure, and why is it so different between different runs?
October 25, 2012 at 6:17 am
I'm running into the same scenario, except I'm not using a Try/Catch...here's my code:
Exec sp_changedbowner 'sa'
If (@@Error <> 0)
Print 'errored changing owner'
I get an error level...
July 18, 2012 at 8:06 am
One other thing that may be affecting all of this is there's a "Top" statement in this query and I'm ordering by the primary key...
March 30, 2012 at 12:14 pm
gregory.anderson (3/30/2012)
Eugene Elutin (3/30/2012)
UPDATE STATISTICS TableA
SELECT *
FROM (
Select FieldA, FieldB
From TableA
...
March 30, 2012 at 12:10 pm
Well, adding this line to my query:
And cl.CorrespondenceFO <> ''
My query returns data in 1 hour 26 minutes. I guess I never let it run that long BEFORE I added...
March 30, 2012 at 12:04 pm
Eugene Elutin (3/30/2012)
UPDATE STATISTICS TableA
SELECT *
FROM (
Select FieldA, FieldB
From TableA
...
March 30, 2012 at 7:52 am
Wow, this took 3 hours 13 minutes to run. Should I be doing a percentage on the scan instead?
Create Statistics CorrespondenceLog_CorrespondenceFO On IARTS.dbo.CorrespondenceLog (CorrespondenceFO) With FULLSCAN
March 30, 2012 at 6:13 am
gregory.anderson (3/29/2012)
Selectb.CorrespondenceTemplateID, b.OccurrenceCount
From
(
-- Gets the Count for each template (username)
Selecta.CorrespondenceTemplateID As [CorrespondenceTemplateID], Count(1) As [OccurrenceCount]
From
(
-- Gets everything that is a...
March 29, 2012 at 2:11 pm
That one is a little off, here's the fixed version:
Selectb.CorrespondenceTemplateID, b.OccurrenceCount
From
(
-- Gets the Count for each template (username)
Selecta.CorrespondenceTemplateID As [CorrespondenceTemplateID], Count(1) As [OccurrenceCount]
From
(
-- Gets everything that is a Saturday...
March 29, 2012 at 2:02 pm
dweil (3/29/2012)
March 29, 2012 at 1:55 pm
Elliott Whitlow (3/29/2012)
March 29, 2012 at 1:00 pm
Viewing 15 posts - 1 through 15 (of 186 total)