sql server - How to show the tablenames with foreign key = myId -
i trying figure out primary keys of table translation per language resides foreign key.
this have ...
select * (  select tm.seqtrans, t.trans,  case t.seqlang when 1 'nl'                                                      when 2 'fr'                                                      when 3 'en'                                                      when 4 'de'                                                      when 12 'sk'                                                 end lang         acc.translation_map tm                 inner join acc.translation t on tm.seqtrans = t.seqtrans          tm.seqcust = @seqcust  ) p pivot ( max(trans) lang in ([nl],[fr],[en],[de], [sk])         ) pvt   now need somehow use system table check seqtrans , show tablenames.
is possible?
the system stored procedure sp_fkeys need, , can call this:
execute sp_fkeys @pktable_name = 'translation'   books online has more info other parameters , do.
Comments
Post a Comment