Welcome to Sign in | Help
in Search

lista cu tabelele care contin o anumita coloana (MS Sql 2005)

Last post 04-18-2008, 8:24 PM by Gherry. 3 replies.
Sort Posts: Previous Next
  •  04-18-2008, 7:13 PM 4687

    lista cu tabelele care contin o anumita coloana (MS Sql 2005)

    sal, stie cineva cum pot obtine o lista cu numele tabelelelor dintr-o baza de date care contin o anumita coloana? (coloana are bineinteles acelasi nume in toate tabelele)
    Filed under:
  •  04-18-2008, 7:57 PM 4689 in reply to 4687

    Re: lista cu tabelele care contin o anumita coloana (MS Sql 2005)

    SQL 2000 sau 2005?

  •  04-18-2008, 8:15 PM 4690 in reply to 4689

    Re: lusta cu tabelele care contin o anumita coloana (MS Sql 2005)

    Scuze, acum am vazut "filed under: SQL 2005"...Embarrassed

    Incearca un JOIN dupa object_id intre sys.columns si sys.objects, unde coloana "type" din sys.objects are valoarea 'U' (sau cu sys.tables), iar coloana "name" din sys.columns este cel "in cauza"...

  •  04-18-2008, 8:24 PM 4691 in reply to 4690

    Re: lusta cu tabelele care contin o anumita coloana (MS Sql 2005)

    cool, thx de sfat :)

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems