Is there a way to get the statement that created a view for an existing view in SQL Server 2008? I thought there was a stored procedure or some metadata that had this data, but
You can see the script as code, and copy paste it into an editor like this:
SELECT v.TABLE_NAME, v.VIEW_DEFINITION FROM INFORMATION_SCHEMA.VIEWS v WHERE v.TABLE_NAME LIKE '%%'
and insert the view name you want.