Viewing 15 posts - 1,231 through 1,245 (of 1,957 total)
The problem is likely to be that the insert is returning a row count that is "confusing" your code.
Usually a "SET NOCOUNT ON;" in your stored procedure will fix that,...
September 8, 2011 at 4:32 pm
IF the server has not been restarted since the changes, you can try the Schema Changes History report available from the reports menu off the database node in SSMS.
It's not...
September 8, 2011 at 4:14 pm
Just thinking about simple things to check here, because I am not as experienced as others on these forums...
Are you sure that you are not experiencing unexpected file growth in...
September 8, 2011 at 4:06 pm
Thanks for sharing.
FYI there is another way, which makes use of the US date format having month first:
select convert(char(2),getdate(),1)
September 7, 2011 at 4:18 pm
Welsh Corgi (9/6/2011)
Respectfully...
September 6, 2011 at 5:29 pm
I was going to talk about foreign key constraints, but it came out wrong...
I will try again.
I would urge you to be careful when using an active/inactive flag as well,...
September 6, 2011 at 4:51 pm
Welsh Corgi (9/6/2011)
I would not just let anyone add values to the table. THis need to be well thought out or you will have issues.
I add...
September 6, 2011 at 4:38 pm
J Livingston SQL... I can't believe how long it took me to get the joke in your name!
September 6, 2011 at 1:14 pm
I am glad you are making progress 😀
I would suggest you keep an eye on this because, from past experience, whenever Jeff goes quiet for a day or two there...
September 6, 2011 at 11:37 am
Jeff,
Attached query execution plan for the two queries, your version first, then mine from my machine.
From your stats, I would say that the optimizer has decided on a different plan...
September 4, 2011 at 6:40 pm
Adding this index to Jeff's table:
CREATE INDEX IX_Hourly_Stats_By_Device_Cover01
ON #Hourly_Stats (Device_ID ASC, Server_ID ASC, Data_Timestamp DESC);
Allows this Device specific query to return data for every server/device...
September 4, 2011 at 5:50 pm
Jeff,
I tried your test data/sample query on my desktop with different results:
(Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Jun 17 2011 00:54:03 Copyright...
September 4, 2011 at 5:33 pm
Hi clubbavich
Please find my response below, it is not intended to be confrontational but I am concerned that people will think (reading this thread) that a set based query such...
September 4, 2011 at 5:04 pm
<pokingheadoutofthetrench>
I disagree that there is an RBAR method here.
The UNION gets a result out of an 18M+ rows table with only 4 reads - you can't get less RBAR can...
September 3, 2011 at 6:33 pm
I have definitely done a SQL2008 Enterprise Evaluation SKU upgrade (on a test system) - I think it was to SQL2008 Standard edition.
It was a simple process using the SKUUPGRADE...
August 23, 2011 at 5:37 pm
Viewing 15 posts - 1,231 through 1,245 (of 1,957 total)