Viewing 15 posts - 11,281 through 11,295 (of 15,381 total)
select *, OBJECT_NAME(fkeyid)
from sys.sysforeignkeys
where OBJECT_NAME(rkeyid) = 'YourMainTableHere'
DOH! Still using the deprecated version above....disregard and instead use this:
select *, OBJECT_NAME(parent_object_id)
from sys.foreign_key_columns
where OBJECT_NAME(referenced_object_id) = 'YourMainTableHere'
July 20, 2012 at 12:32 pm
L' Eomot Inversé (7/20/2012)
sestell1 (6/25/2012)
Does anyone know what...
July 20, 2012 at 11:13 am
Lynn Pettis (7/20/2012)
Okay, forget you getting frustrated, I'm frustrated. Just how many different threads do you need for the same problem????
Probably looks like their indexes...fragmented all over the place....
July 20, 2012 at 10:53 am
Duplicate post. Please direct all replies here. http://www.sqlservercentral.com/Forums/Topic1332970-291-1.aspx
July 20, 2012 at 9:27 am
nishantshende-532951 (7/20/2012)
Thanks for the reply...I am inserting data into temporary table so there is no question of indexes.
But where is the data coming from? It is very likely that the...
July 20, 2012 at 9:24 am
bdloving 4446 (7/20/2012)
Careful, none of the answers given test for your Date requirement!
That's because the best we could do is pseudocode, we never got any ddl to work with. I...
July 20, 2012 at 9:12 am
Steve Jones - SSC Editor (7/20/2012)
July 20, 2012 at 8:05 am
Mountain Steve (7/20/2012)
July 20, 2012 at 7:44 am
Where did you hear that? There is no truth to that at all. It doesn't even make sense. Why would the optimizer care which order they are in? It is...
July 20, 2012 at 7:36 am
tibrize (7/20/2012)
Answer of the question is wrong !!
Nope, you typed it wrong. 😛 The very last query is a UNION and you have UNION ALL
select @@VERSION
create table #t1 (col...
July 20, 2012 at 7:28 am
I don't quite get what you are doing but doing inserts into a hierarchy like this is pretty straight forward.
July 20, 2012 at 7:19 am
To take a little different approach to the discussion, you should NEVER design your tables based on what you want in a report. Design your tables in such a way...
July 19, 2012 at 4:06 pm
Here is a link to Paul's article about APPLY.
Understanding and Using APPLY (Part 1)[/url]
Understanding and Using APPLY (Part 2)[/url]
This a great set of articles and totally opened my eyes on...
July 19, 2012 at 2:52 pm
No worries. It will fall off the radar soon enough. 🙂
July 19, 2012 at 2:42 pm
Lynn Pettis (7/19/2012)
Sean Lange (7/19/2012)
I wish there was something I could do for you to thank you for all your time on this.
This is just so great.
I think you just...
July 19, 2012 at 2:19 pm
Viewing 15 posts - 11,281 through 11,295 (of 15,381 total)