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

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -