Viewing 15 posts - 1 through 15 (of 187 total)
I found the problem but still not sure why it doesn't work!
I used the USER_NAME() and SUSER_NAME() functions to check the before and after and found that SUSERNAME() returned...
October 24, 2012 at 1:14 am
Yes, when I run your code snippet I get the same error message as per my original post.
July 11, 2012 at 1:56 am
Yes, it is a Windows user account not a SQL login and the account exists in both Server A and Server B (the source database server).
July 10, 2012 at 9:06 am
GSquared (10/21/2011)
October 23, 2011 at 3:36 am
GSquared (10/21/2011)
October 21, 2011 at 11:31 am
Jeff/Magoo,
Thanks both for your suggestions; I've very quickly tested Magoo's code against my sample data and it does return the expected results. I'm going to need a bit of time...
May 31, 2011 at 1:33 am
The example I gave was really simplified but another example is where a product, which is made of many components, is itself a component of another product. Again, this is...
May 30, 2011 at 1:37 pm
Yes to the question about only returning leaf level products, I'll try and explain. "Product A" consists of three components (Part a1, Part a2 and Part a3). Most customers will...
May 30, 2011 at 12:26 pm
Jeff Moden (5/29/2011)
David-155102 (5/26/2011)
Using "Part D" as the example the result would be the following components:Part X
Part W
Part Y
Gosh... what would you want if Part Z had more than just...
May 30, 2011 at 4:43 am
Well, initial testing on my production data looks good! So thank you very much for your help with this problem 😀
May 29, 2011 at 3:52 am
Using "Part D" as the example the result would be the following components:
Part X
Part W
Part Y
May 26, 2011 at 9:08 am
Just to clarify, the error is not the duplication (resolved using DISTINCT), it is that only the very last level in the structure is returned even though the Part D...
May 26, 2011 at 8:49 am
To reproduce the error (or rather incorrect results) I've added some more items to the sample table:
IF OBJECT_ID(N'tempdb..#ProductAssembly ') > 0
DROP TABLE #ProductAssembly ;
GO
--Create temp...
May 26, 2011 at 8:33 am
Thanks, it works using the sample data but not on my production data....digging around now to try and figure out why it doesn't!
May 26, 2011 at 7:00 am
Viewing 15 posts - 1 through 15 (of 187 total)