Viewing 15 posts - 36,706 through 36,720 (of 59,072 total)
bitbucket-25253 (9/17/2010)
I would suggest reading the followinghttp://www.sqlservercentral.com/articles/Datetime+Manipulation/61822/
AND the comments on the article describing some different approaches.
Oh my, no. Sorry Ron.
@Jeev... you're just asking for a computational...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 6:06 pm
Heh... I thought that SSRS was supposed to be simple to do stuff like this with. I'm thinking about learning SSRS (it's a 4 letter word to me :-P)...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 6:01 pm
Joe,
Here's a bit more information...
First, open up BOL in the INDEX mode and do a search for "SELECT clause" (without the quotes on any of these lookups), and then make...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 5:54 pm
Joe Contreras-290946 (9/18/2010)
dynamically building tables in SQL
Create table based on SQL
SELECT Into
I couldn't remember the exact syntax and it was driving me nuts. It...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 5:42 pm
Perry Whittle (9/18/2010)
Hi Jeffresults attached. I have a HP laptop with win XP SP2, 3GB RAM and AMD Turion x2 1.9ghz
query took 23 mins 21 secs
Regards
Perry
Heh... I bought a brand...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 5:36 pm
I have to admit that unless you know what you're looking for, this one is hard to find in BOL. GOOGLE? That might be a different story...
http://www.google.com/search?btnG=1&pws=0&q=how+to+create+a+table+using+select+%2B%22SQL+SERVER%22
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 4:36 pm
Nicely done, Lowell. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 4:32 pm
@Randy,
If you get a solution for this, please share it. And whether you get a solution or not, could you explain a bit more about why you need to...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 4:30 pm
Eric Russell 13013 (9/17/2010)
Jeff Moden (9/16/2010)
I'm curious... Why do the folks that imposed this requirement think that it's a good idea to do?
There are a narrow range of data modeling...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 4:28 pm
Can't you just write a batch file loop for this?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 4:22 pm
LutzM (9/18/2010)
Side note:You might want to consider reformatting queries with rather long statements to improve readability...
Since it's all upper case with a pot wad of underscores, I wonder if this...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 4:18 pm
I agree with gah. Kingston's code does exactly what you asked for.
At this point, I suggest you read and heed the article at the first link in my signature...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 4:12 pm
Oh yeah... I almost forgot. Here's the default collation on my desktop box...
SQL_Latin1_General_CP1_CI_AS
... and on my server box...
SQL_Latin1_General_CP1_CI_AS
What we need to find out now is why XML seems to...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 10:29 am
Ok, Oleg... not sure what the differences are between your machine and the two that I'm running but the Tally table beats the two XML methods pretty badly on both....
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 10:24 am
My tests DO reflect the total picture... just not on your machine. 😉 They show the test results on my machine. It's obvious that my machine is different...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 18, 2010 at 8:05 am
Viewing 15 posts - 36,706 through 36,720 (of 59,072 total)