samir_issa
Grasshopper
Points: 14
More actions
May 10, 2008 at 6:36 am
#96297
How to get, programatically, a list of the sql database views?
K. Brian Kelley
SSC Guru
Points: 114704
May 10, 2008 at 6:43 am
#813456
One way is to query the Information Schema view for such information:
SELECT TABLE_SCHEMA, TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'VIEW'
K. Brian Kelley@kbriankelley
May 10, 2008 at 8:17 am
#813467
Thanks, it is working perfect.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply