i have made a useful scripts in my environment and i want to wrap the script same as Oracle Wrap utility can do. is there any other way to the same in sql server?
1 Answer
Oracle Database
Oracle's Wrap Utility is limited to encrypt only contents of the following types:
19.0 Documentation
- Package specification
- Package body
- Type specification
- Type body
- Function
- Procedure
Reference: PL/SQL Source Text Wrapping (Oracle | Database PL/SQL Language Reference)
Microsoft SQL Server
If you have a look at the individual CREATE ...
statements for the available objects in Microsoft's SQL Server then you will observe that the following objects can be encrypted:
Functions
CREATE FUNCTION .... WITH ENCRYPTION...
Reference: CREATE FUNCTION (Transact-SQL) (Microsoft Learn | SQL)
Procedures
CREATE PROCEDURE .... WITH ENCRYPTION...
Reference: CREATE PROCEDURE (Transact-SQL) (Microsoft Learn | SQL)
Triggers
CREATE TRIGGER .... WITH ENCRYPTION...
Reference: CREATE TRIGGER (Transact-SQL) (Microsoft Learn | SQL)
Other options for other Microsoft SQL Server objects may be available, but I guess you get the general idea.
-
-
@zulnasir If you think my answer is helpful, then I would appreciate an accept or at least an up-vote to my answer. Thanks. Oct 26 at 14:45