I have a number of views in my SQL Server database.
How do I export these as CREATE VIEW scripts?
I tried to right click the database – script database as – create to – new query editor window, but it doesn’t show my my views (or tables even for that matter).
Any ideas?
In SSMS, if you right click the DB -> Tasks -> Generate Scripts… – that will take you through a wizard.