A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
Hi @Sarvesh Pandey ,
How are things going on?
Could you please share us the detailed error message?
Any workaround or alternate way to extract create view command.
You can script the view by right-click the view-> Script View as->CREATE To.
You also can get all views in the database using the following query:
USE <Databasename>
Go
SELECT S.definition
FROM sys.sql_modules S
INNER JOIN sys.Objects O
ON S.Object_id = O.Object_id
WHERE O.type = 'v'
Please refer to this article which might help.
Best Regards,
Amelia
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.