SPC030203: Do not read ConnectionString from SPContentDatabase

There is no reason to read the connection string of a SharePoint content database except if you want to read from the database which is not supported.

TypeName: DoNotReadContentDatabaseConnectionString
CheckId: SPC030203
Severity: Error
Type: AssemblyFileReference

Remove the statement for reading the property 'DatabaseConnectionString' from object 'SPDatabase'.


Reading the connection string is not forbidden but the rule assumes that the connection string is used to read from the SharePoint database which is not allowed.

comments powered by Disqus