Query SharePoint 2007 with ODBC

I need to qurey a list in my SharePoint 2007 site using ODBC from another web site and display the result set on a page in that site.
martypiAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ivan PadabedDirector, Technology SolutionsCommented:
I can see 3 options here:
1. create custom ODBC provider, working with SharePoint OM (will work only from SP server)
2. create custom ODBC provider, working with Web Services (will work from everywhere but harder to create)
3. try MS SQL Server ODBC provider to work directly with SP Content Database (good for really simple cases but please avoid this if possible)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
QPRCommented:
You would be better off using the built in web services with sharepoint to retrieve info but if you want to go direct to the DB then it is just like any other data driven web page (although the DB/Table structure is like no other database!)

Do you know how to retrieve sql data from a web page? If so then you can do this.
Assuming the user doing the retrieving has read permissions within sharepoint

you will need to first learn the relevant IDs of your sharepoint layout webid, siteid, listid etc.

Really much easier if you use web services (they are sitting there ready and listening) and use a CAML query to select the data.

Here is a great tool for building caml queries to select sharepoint data
http://www.u2u.net/Tools/wincamlquerybuilder/CamlQueryBuilder.aspx
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.