views:

969

answers:

1

How do I connect a SharePoint web part to a SQL Server database?

+1  A: 

The simpliest way would be to simply have a SQL query in your web part to a database of your choosing. Done. Remember, web parts are Web Controls running in an asp.net http context. You can have anything there.

There are other middle men available like the Data Viewer Web Part, BDC, SQL Reporting Services for SP 2007 and much more. Good luck.

Marc