0

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

Alex Angas
  • 59,219
  • 41
  • 137
  • 210
user27052
  • 375
  • 3
  • 8
  • 12

1 Answers1

1

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
  • 1,178
  • 1
  • 18
  • 31