Viewing 15 posts - 91 through 105 (of 532 total)
koolme_85 (11/30/2011)
November 30, 2011 at 6:00 pm
If you only want a distinct row for each guid then you need to add some sort of aggregating logic to your selection from table1. You're getting more than...
November 30, 2011 at 2:42 pm
Do the statements really need to be dynamic? Or would the statement always be the same for the same hour?
Maybe you could provide a little bit more detail on...
November 29, 2011 at 5:17 pm
I don't really see any reasonable way around using dynamic sql to do what you want. You could do an absurd list of IF blocks but that would be...
November 14, 2011 at 10:52 am
Sounds like the proc definition has been scripted in a job or something. SQL Server won't overwrite unless you tell it to. You could set up a DDL...
November 10, 2011 at 3:55 pm
I understand that is a pseudo staging table. Normally staging tables are used to take flat data and move it into a relational format. That's not going on...
November 9, 2011 at 12:06 pm
You can do a few things ...
set statistics io on;
This option will allow you to see where the IO's are happening. It can help in many cases to troubleshoot...
November 9, 2011 at 11:52 am
TableA = TableB joined to TableC
This is, in my opinion, bad design. It's redundant. Tables B and C can always be derived from TableA and TableA can always...
November 9, 2011 at 11:40 am
I would suggest reading http://social.msdn.microsoft.com/Forums/en-US/sqlsecurity/thread/91f3ef67-6c84-4774-a7aa-c8e8be014721/ as there is specific information about troubleshooting steps when encountering this error.
November 8, 2011 at 6:40 pm
You'll want to pass in the values you want to check against in a single string and use a string splitting method (usually in a user defined function) to split...
November 8, 2011 at 1:15 pm
I agree with G^2. I would rather error on the side of reducing reads over picking the "fastest" time unless it is really disproportionate.
November 3, 2011 at 12:15 pm
It depends on what you want to do. You've given no indication as to the nature of what you want to accomplish so it's impossible to give any specific...
November 2, 2011 at 11:34 am
So it sounds like you don't have enough RAM, so it has to be written to tempdb, and you don't have enough disk space, so the attempt to write to...
October 27, 2011 at 12:53 pm
Viewing 15 posts - 91 through 105 (of 532 total)