1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] Getting list of tables, and fields in each, in a database

Discussão em 'Outras Linguagens' iniciado por Stack, Novembro 7, 2024 às 12:32.

  1. Stack

    Stack Membro Participativo

    I'm looking at creating a basic ORM (purely for fun), and was wondering, is there a way to return the list of tables in a database and also the fields for every table?

    Using this, I want to be able to loop through the result set (in C#) and then say for each table in the result set, do this (e.g. use reflection to make a class that will do or contain xyz).

    Further to this, what are some good online blogs for SQL Server? I know this question is really about using system SPs and databases in Sql Server, and I am ok with general queries, so I'm interested in some blogs which cover this sort of functionality.

    Thanks

    Continue reading...

Compartilhe esta Página