Viewing post 1 (of 1 total)
hi
this is correct.
DECLARE @isql VARCHAR(MAX),
@dbname VARCHAR(64)
SET @dbname = 'TargetDatabase'
DECLARE c1 CURSOR FOR
SELECT modz.definition
FROM sys.sql_modules modz
LEFT OUTER JOIN sys.objects objz
ON objz.object_id = modz.object_id
WHERE type_desc IN ( 'SQL_SCALAR_FUNCTION', 'CLR_SCALAR_FUNCTION', 'CLR_TABLE_VALUED_FUNCTION',
'SQL_INLINE_TABLE_VALUED_FUNCTION', 'SQL_STORED_PROCEDURE', 'CLR_STORED_PROCEDURE',...
January 28, 2021 at 7:15 am
Viewing post 1 (of 1 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy