Microsoft
Software
Hardware
Network
Question : SQL Server Error 'The select permission...' when trying to generate scripts
I am trying to export a SQL server 2008 database from a share hosting provider using generate script wizard. I have selected to script database data and have set script for server version to SQL server 2005 (required).
I am getting the error message:
TITLE: Microsoft.SqlServer.Smo
--------------------------
----
An exception occurred while executing a Transact-SQL statement.
For help, click:
http://go.microsoft.com/fw
link?ProdN
ame=Micros
oft+SQL+Se
rver&
ProdV
er=10.0.25
31.0+((Kat
mai_PCU_Ma
in).090329
-1045+)&
Li
nkId=20476
--------------------------
----
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Conne
ctionInfo)
--------------------------
----
The SELECT permission was denied on the object 'sql_expression_dependenci
es', database 'mssqlsystemresource', schema 'sys'.
The SELECT permission was denied on the object 'sql_expression_dependenci
es', database 'mssqlsystemresource', schema 'sys'.
The SELECT permission was denied on the object 'sql_expression_dependenci
es', database 'mssqlsystemresource', schema 'sys'.
The SELECT permission was denied on the object 'sql_expression_dependenci
es', database 'mssqlsystemresource', schema 'sys'.
The SELECT permission was denied on the object 'sql_expression_dependenci
es', database 'mssqlsystemresource', schema 'sys'.
The SELECT permission was denied on the object 'sql_expression_dependenci
es', database 'mssqlsystemresource', schema 'sys'. (Microsoft SQL Server, Error: 229)
For help, click:
http://go.microsoft.com/fw
link?ProdN
ame=Micros
oft+SQL+Se
rver&
ProdV
er=10.00.1
600&EvtSrc
=MSSQLServ
er&EvtID=2
29&LinkId=
20476
--------------------------
----
BUTTONS:
OK
--------------------------
----
Any ideas?
Answer : SQL Server Error 'The select permission...' when trying to generate scripts
Since you are using Dynamic SQL, you will need SELECT permissions on the sql_expression_dependencie
s table.
Random Solutions
Outlook 2007: Change sensitivity of received Message
Command to trigger keyboard stroke through coding in .Net compact Framework
SSIS Dynamic Connection in Execute Sql Task
Formula, Function or Macro that will eliminate the last 6 characters from a cell value
want ie to have small/no cache
Reorder Schedule Record
Disable Data Execution Prevention GPO
Publisher to Pdf Issues
Load picture into image using a recordset
After_Update Event not firing