Viewing 15 posts - 3,436 through 3,450 (of 15,381 total)
edberg16 (1/13/2015)
Thanks Mark Cowne.When I try to run the query, its giving following error:
A non-recursive WITH clause or view should not reference itself within its own definition.
This works fine...
January 13, 2015 at 10:23 am
Hi and welcome to SSC!!!
You will need a recursive cte for this type of thing. If you can change your table to use the HierarchyID the output would be simple.
If...
January 13, 2015 at 8:57 am
Good question. I knew the answer and managed to select the wrong answer...no more QOTD before the first cup of coffee. 😉
January 13, 2015 at 7:15 am
SAMDEV (1/12/2015)
For this purpose I cannot directly insert values from...
January 12, 2015 at 7:48 am
Why not just remove the cursor? From what you posted there is no need for a cursor here at all. This insert process should be set based instead of row...
January 12, 2015 at 7:32 am
SQLRNNR (1/6/2015)
Koen Verbeeck (1/6/2015)
Ed Wagner (1/6/2015)
Jeff Moden (1/6/2015)
GilaMonster (1/5/2015)
Jeff Moden (1/4/2015)
January 6, 2015 at 3:12 pm
An interesting solution. The only issue I have is that the seems to be like premature optimization. We have created a very non-standard approach for a performance issue that doesn't...
December 22, 2014 at 7:19 am
Steve Jones - SSC Editor (12/19/2014)
Merry Christmas and Happy Holidays, everyone.I'll be gone after tomorrow, heading away for a week. Everyone behave.
Have a great holiday Steve. We are heading...
December 19, 2014 at 11:06 am
MMartin1 (12/18/2014)
jshuter (12/17/2014)
I'd still do something like the following
declare @i int...
December 18, 2014 at 11:58 am
Rod at work (5/2/2014)
December 18, 2014 at 10:42 am
Good question. Let's not forget that this is NOT a real representation of a boolean. A bit in sql server can have 3 values with NULL being the third.
December 18, 2014 at 7:30 am
sharonsql2013 (12/17/2014)
Say here from 2014/11/19 through 2014/10/19
Create Table #Temp
(Name Varchar(255)...
December 17, 2014 at 3:22 pm
npatel 17252 (12/17/2014)
December 17, 2014 at 3:17 pm
jshuter (12/17/2014)
I'd still do something like the following
declare @i int =...
December 17, 2014 at 12:44 pm
There really isn't a right or wrong answer for this. Management is more difficult with multiple databases but there are certainly some advantages. With a single database you have to...
December 17, 2014 at 11:49 am
Viewing 15 posts - 3,436 through 3,450 (of 15,381 total)