USE AdventureWorks
GO
SELECT [name] AS ViewName
,create_date as CreationDate
,modify_date as ModificationDate
FROM sys.views
ORDER BY ViewName
GO
You can also get various other info like SchemaName from sys.views using the query:
SELECT [name] AS ViewName, SCHEMA_NAME(schema_id) AS SchemaName
FROM sys.views
Did you like this post?
|
|
|
||
|
|
|
|
|
|
|
subscribe via rss |
|
subscribe via e-mail |
|
|
print this post |
|
follow me on twitter |




comments
0 Responses to "Find out all the views in a database using SQL Server 2005"Post a Comment