Viewing 15 posts - 5,686 through 5,700 (of 15,381 total)
The pivot works but the output needs to be dynamic. This is why I suggested using the dynamic cross tab, and you get the bonus of a cross tab being...
February 18, 2014 at 9:11 am
PugMaster (2/18/2014)
Many thanks for the reply, one thing i did not demonstrate in my sample (sorry, me being stupid) is that the parent or child could appear in either column,...
February 18, 2014 at 9:09 am
nickwrenchster (2/17/2014)
February 17, 2014 at 3:16 pm
Then I noticed this. "dbo.Projectforfolder(@topFolderID)". We need to have enough definition of this to know what it is doing too since the value from that is returned in the final...
February 17, 2014 at 2:21 pm
Yeah we can convert to an iTVF. Can you put together ddl for the table and a few rows of sample data. With CREATE TABLE and a few INSERTS I...
February 17, 2014 at 2:18 pm
jerryw 5810 (2/17/2014)
I was hoping to have a seperate Stored Procedure to give me just the folder names that I would be able to use in other areas. I...
February 17, 2014 at 1:52 pm
Another option might be to convert sp_FoldersOfFile into an inline table valued function.
BTW, you should not name your procs with the sp_ prefix. That is reserved for system procs. I...
February 17, 2014 at 1:00 pm
Can you provide some ddl and sample data? It sounds like your origin and destination columns are derived? If your pattern of data is consistent maybe you can just a...
February 17, 2014 at 12:56 pm
Something like this?
Insert TableB (col1, col2, col3, col4)
select col1, col2, col3, ROW_NUMBER() over (order by newid()) + (select MAX(col4) from tableb)
from tablea
--edit--
Looks like Russel was typing almost the exact same...
February 17, 2014 at 9:44 am
born2achieve (2/17/2014)
Hi Sean,It's awesome and thank you so much for your great help. I am able to plot my Pivot. Cheers!!!
Hi Luis,
Thank you so much for your time on this.
Glad...
February 17, 2014 at 9:36 am
What part are you struggling with? It looks like you changed a couple of columns in the query that I posted last week. You should have all the data as...
February 17, 2014 at 8:22 am
You have your join condition backwards on the recursive portion of your cte.
ON cteTxH.ComponentID = TC.pkTransactionID
February 17, 2014 at 7:57 am
mattech06 (2/15/2014)
How do I add an image from my pc to a post? Clicking on the image...
February 17, 2014 at 7:39 am
born2achieve (2/14/2014)
if am not wrong that i need to create tally table?
Yes. The article I referenced will explain not only how to build one but also how to use one....
February 14, 2014 at 2:47 pm
born2achieve (2/14/2014)
yes, all my output data can be text. any help please
I was hoping you would say no. It is much easier to do date math with actual dates.
I...
February 14, 2014 at 2:24 pm
Viewing 15 posts - 5,686 through 5,700 (of 15,381 total)