Pages

12 March, 2012

How to access Context Database in Sitecore v6.5 - 1

Sitecore has 3 databases: Core, Master and Web. Core has Sitecore Components; Master has all versioned files and unversioned content; Web has only latest (published) content.
Current Client
Database
When using Sitecore Client or any CMS client
Core Database
When using Page Editor
Master Database
When browsing Published Site
Web Database

Sitecore.Data.Database context = Sitecore.Context.Database;

Note: Add Sitecore.Kernel.dll reference to project.

No comments:

Post a comment