function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
pooja chauchanpooja chauchan 

Is it possible to query the salesforce DB without logging on or authorising the request? Ie a DB full of public data, I don't necessarily want users needing to login to see public information?

Best Answer chosen by pooja chauchan
Gaurav NirwalGaurav Nirwal
When you say Salesforce data, yes there is a way to publish the public data without required auth using Force.com sites 
The following doc and blog gives the details how you can create the site, however, its on read only data:
https://developer.salesforce.com/page/An_Introduction_to_Force.com_Sites
http://bobbuzzard.blogspot.com/2012/10/building-templated-web-site-with.html

All Answers

Gaurav NirwalGaurav Nirwal
If your Developer Org was created prior  to 2009, the integration from Force.com sites to Developer Orgs was not available then. The solution then is to register  for a new Developer Org and you will automatically have this functionality.

reference: https://help.salesforce.com/apex/HTViewSolution?urlname=Why-I-don-t-have-Sites-menu-in-my-Org-1327365188711&language=en_US
pooja chauchanpooja chauchan
Please provide another method which can be under stand by me
Gaurav NirwalGaurav Nirwal
You could set up a site and write custom visual force page / controller to either display the data or return the data via another data structure.
pooja chauchanpooja chauchan
Is there no other way to query the DB, ie by providing an Org ID? Am I reliant on havintg to create a site?

Gaurav NirwalGaurav Nirwal
When you say Salesforce data, yes there is a way to publish the public data without required auth using Force.com sites as pcon suggested.
The following doc and blog gives the details how you can create the site, however, its on read only data:
https://developer.salesforce.com/page/An_Introduction_to_Force.com_Sites
http://bobbuzzard.blogspot.com/2012/10/building-templated-web-site-with.html
Gaurav NirwalGaurav Nirwal
When you say Salesforce data, yes there is a way to publish the public data without required auth using Force.com sites 
The following doc and blog gives the details how you can create the site, however, its on read only data:
https://developer.salesforce.com/page/An_Introduction_to_Force.com_Sites
http://bobbuzzard.blogspot.com/2012/10/building-templated-web-site-with.html
This was selected as the best answer
pooja chauchanpooja chauchan
Thanks Matthews
for your answer
Gaurav NirwalGaurav Nirwal
thanks Pooja 
for choosing my best answer