Dec 14, 2006 #1 Albano Instructor Dec 11, 2000 221 PT Hi, Whow can I get table names of a expecific Data Base? Thanks, Albano
Dec 14, 2006 #2 SQLDenis Programmer Oct 1, 2005 5,575 US run this in the DB that you want the tables for select table_schema,table_name from information_schema.tables where table_type ='BASE TABLE' order by table_schema,table_name Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Upvote 0 Downvote
run this in the DB that you want the tables for select table_schema,table_name from information_schema.tables where table_type ='BASE TABLE' order by table_schema,table_name Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/
Dec 14, 2006 Thread starter #3 Albano Instructor Dec 11, 2000 221 PT but, this don´t give-me the list of table names of a custum DB (eg:One made by me) Upvote 0 Downvote
Dec 14, 2006 #4 SQLDenis Programmer Oct 1, 2005 5,575 US why not? have you run this in your db? use yourdb go select table_schema,table_name from information_schema.tables where table_type ='BASE TABLE' order by table_schema,table_name Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/ Upvote 0 Downvote
why not? have you run this in your db? use yourdb go select table_schema,table_name from information_schema.tables where table_type ='BASE TABLE' order by table_schema,table_name Denis The SQL Menace SQL blog:http://sqlservercode.blogspot.com/
Dec 14, 2006 Thread starter #5 Albano Instructor Dec 11, 2000 221 PT it works thanks. Upvote 0 Downvote