SHAREPOINT FORUM : Resource for sharepoint 2007, sharepoint portal server, sharepoint services v3, sharepoint server (moss) 2007, sharepoint web parts, templates, sharepoint training, tutorials, sharepoint workflow, backup  

Go Back   SHAREPOINT FORUM : Resource for sharepoint 2007, sharepoint portal server, sharepoint services v3, sharepoint server (moss) 2007, sharepoint web parts, templates, sharepoint training, tutorials, sharepoint workflow, backup > Sharepoint Support Topics > Windows Sharepoint Services Version 3 (WSS V.3) Development Topics
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-11-2008, 08:48 AM
tomash- tomash- is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default Edit MSSQL table through SharePoint site

Hello!

I'm new to SharePoint and ASP.NET.
I want to connect to and edit an SQL Server 2005 database through a sharepoint server 2007 site.
My question is:
What would be the simpliest way to do this?
I'd like to have a simple a grid view of a table on the site so that the table can be changed through the view.

With Sharepoint designer i've created a site containing an ASP.NET GriedView with the proper data source, with SQL Authentication. And it all works fine except that I can't edit the table through the sharepoint site.
Is there any SharePoint or ASP.NET Control which can do this just like if I was editing the table?

One solution would be to use the AutoGenerateEditButton of the GridView, but that wouldn't be a comfortable way to work with the table.
(and it didnt work for me, when I wanted to update something this error occured: An unexpected error has occurred.

Thanks a lot for your help!

Tom
Reply With Quote
  #2  
Old 05-12-2008, 04:19 AM
manyag manyag is offline
Junior Member
 
Join Date: May 2008
Posts: 15
Default

Hi

May be you need to write a customized web part for this purpose. As far as I know no Out of box web part supprt data modification in external DB.

Also you should try to see the full error message to get the root cause. The friendly error message does not help much. To turn on the complete error message you need to change entries in web.config. I have put the steps at:

http://manish-sharepoint.blogspot.co...s-in-moss.html

hope this helps
http://manish-sharepoint.blogspot.com
Reply With Quote
  #3  
Old 05-12-2008, 11:55 AM
tomash- tomash- is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

Thanks for the debugging tip!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:29 PM.


Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 2.4.5