Viewing 15 posts - 12,271 through 12,285 (of 15,381 total)
adrian.facio (4/24/2012)
-- A tally table is needed.
CREATE TABLE Numbers (Number INT)
INSERT INTO numbers
SELECT TOP 1000 row_number() OVER (
ORDER BY column_id
)
FROM sys.columns;
-- Number...
April 24, 2012 at 8:45 am
michael vessey (4/24/2012)
this looks like an ideal candidate for redesigning the tables into a single and using range partitioning for each month
+1
April 24, 2012 at 8:27 am
Maybe you should create a total of 3 procs. One is the main "driver" proc which has your conditional check(s).
create procA
if (somecondition)
exec procB
else
...
April 24, 2012 at 8:26 am
Thanks for being honest about it being homework. It helps make the response in such a way as to guide you instead of feeding you the answer. From your response...
April 24, 2012 at 8:06 am
As another thought you should read this article about using the nolock hint.
http://sqlblog.com/blogs/andrew_kelly/archive/2009/04/10/how-dirty-are-your-reads.aspx
Basically, you should not use it, ever. Dirty reads can be acceptable in some situations but isolation...
April 24, 2012 at 7:37 am
Lynn Pettis (4/23/2012)
Great, now he is yelling at Grant.
Just ignore him. He will go bother somebody at some other site once he realizes nobody will respond anymore. He is clearly...
April 23, 2012 at 2:32 pm
GSquared (4/23/2012)
dbrumley (4/23/2012)
And yet, you would be upset if you found somebody outside your bedroom handing out binoculars to passersby...
I would feel sorry for the passersby.
If they watch me in...
April 23, 2012 at 1:51 pm
djackson 22568 (4/23/2012)
April 23, 2012 at 1:13 pm
Charmer you posted 2 of the 3 requested items and that one is only partially complete. You posted ddl for 4 tables but there is no data for SrcComment.
In your...
April 23, 2012 at 12:51 pm
While loops are no better (or worse) than a cursor. They should both be avoided except in some rare cases. The example in this post is NOT one of those.
April 23, 2012 at 12:46 pm
Brandon Leach (4/23/2012)
Steve Jones - SSC Editor (4/23/2012)
jay-h (4/23/2012)
A big problem with Facebook, Google etc is they insist on your 'true name' rather than nickname or pseudonym.
Not sure you need...
April 23, 2012 at 12:39 pm
Sounds like homework. We are not going to do your homework for you but we can help. What have you tried so far?
April 23, 2012 at 11:27 am
As I said before you should look at the first link in my signature. There is no ddl and your sample data is not easily consumable.
The point is we are...
April 23, 2012 at 11:06 am
Why are you starting a new thread for the same discussion? If you would post ddl, sample data and desired output you would find lots of people willing to help.
Please...
April 23, 2012 at 10:53 am
Viewing 15 posts - 12,271 through 12,285 (of 15,381 total)