See below code:
SQLMint
Error message [while running a stored procedure designed to restore multiple databases from a given drive location]:
Execution of user code in the .NET Framework is disabled. Enable “clr enabled” configuration option.
Solution [execute]:
sp_configure ‘clr enabled’, 1
go
reconfigure
go
Below is an output from a sql login session, the sql login account has select permissions, and attempts to truncate [quickly delete rows without logging each transaction] the table which has over 10,000 rows of data.
SQL Code
truncate tableĀ [AdventureWorks2012].[dbo].[MyList]
Result ==========
Msg 1088, Level 16, State 7, Line 1 Cannot find the object “MyList” because it does not exist or you do not have permissions.
Solution
use [AdventureWorks2012]
GO
GRANT CONTROL ON [dbo].[MyList] TO [myuid]
GO
Result
In the above example, myuid is the name of the sql login account