[SQL] Relazioni tra tabelle

Select

object_name(rkeyid) Parent_Table,

object_name(fkeyid) Child_Table,

object_name(constid) FKey_Name,

c1.name FKey_Col,

c2.name Ref_KeyCol

From

sys.sysforeignkeys s

Inner join sys.syscolumns c1

on ( s.fkeyid = c1.id And s.fkey = c1.colid )

Inner join syscolumns c2

on ( s.rkeyid = c2.id And s.rkey = c2.colid )

Order by Parent_Table,Child_Table

posted @ lunedì 5 gennaio 2009 00:29

Print

Comments on this entry:

# re: [SQL] Relazioni tra tabelle

Left by he at 13/11/2014 18:50
Gravatar
rapidly competitive social check credit score major economic ebbs and flows credit report score impact analytics 4925

# re: [SQL] Relazioni tra tabelle

Left by http://www.nullavaperduto.it at 24/07/2015 08:49
Gravatar
Positive overall lines and side bag is smooth, though not necessarily straight.

# re: [SQL] Relazioni tra tabelle

Left by Giulia at 04/01/2018 14:34
Gravatar
Questa è una pagina davvero interessante, ecco perché voglio fare complimenti all'amministratore.
http://www.friv.live/
Dobbiamo ammettere che questo articolo è uno dei migliori che ho letto. Apprezzo il tuo lavoro e ti auguro molti altri successi in futuro.
Comments have been closed on this topic.
«aprile»
domlunmarmergiovensab
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011