SPC030203: Do not read ConnectionString from SPContentDatabase |
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
Copyright © 2013 RENCORE AB. All Rights Reserved
Disclaimer: The views and opinions expressed in this documentation and in SPCAF are those of the creators and do not necessarily reflect the opinions and recommendations of Microsoft or any member of Microsoft. All trademarks, service marks, collective marks, copyrights, registered names, and marks used or cited by this documentation are the property of their respective owners. SharePoint Code Analysis Framework, Version 4.5.2.7855, see www.spcaf.com for more information |