how can i get table list and its structure from sql server.. i use the following code to get the database list from sql server.
SELECT * FROM sys.databases WHERE sys.databases.database_id > 4
this query return's database "name" and "id" and many other fied...
and i my .net app show bind the list with dropdown... now i need to get the table list of selected database in the dropdown on the basis of it's id...
what is the query to get the table list of selected database.