Query all sql tables

Asked

Viewed 880 times

0

Good night I’m starting in the career of developer and I’m creating an application that will read an xml file.

I am having difficulty passing a command in the sql database that returns all tables and their attributes ( column and values).

Thank you

  • 1

    What is the relationship between reading XML file and getting the list of tables and columns?

  • 1

    in charge: SELECT * FROM INFORMATION_SCHEMA.Columns there should be all tables and columns

  • the idea is to transform a query in the sql server database into an xml file. I am using the following command: use Automacaotest SELECT * FROM INFORMATION_SCHEMA.Columns for xml path the idea was to get close to something : <Tablename> <ID>1</ID> <Description>Browser Google Chrome</Description> <Operation>1</Operation> <Massadados>1</Massadados> </Nometabela> <Nometabela> <ID>1</ID> <Descricao>Browser Google Chrome</Descricao> <Operation>1</Operation> <Massadados>1</Massadados> </Nometabela>

  • didn’t understand a thing. vc want to generate in sql an xml containing all tables and their values?

  • that , generate an xml containing all tables and values in sql , so q o SELECT * FROM INFORMATION_SCHEMA.Columns shows only columns without their values

1 answer

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.