Answered by:
how to create a web part that access sql server different from sharepoint server

Question
Answers
-
Hi Semika,
Accessing a different database from your SharePoint WebPart works just like it would from a 'normal' .NET application. You can write your connection in your C# code behind file. Have a look at the link below which explains a basic guide:
http://www.codeproject.com/Articles/4416/Beginners-guide-to-accessing-SQL-Server-through-C
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Semika Tuesday, July 23, 2013 9:15 PM
All replies
-
Hi Semika,
Accessing a different database from your SharePoint WebPart works just like it would from a 'normal' .NET application. You can write your connection in your C# code behind file. Have a look at the link below which explains a basic guide:
http://www.codeproject.com/Articles/4416/Beginners-guide-to-accessing-SQL-Server-through-C
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- Marked as answer by Semika Tuesday, July 23, 2013 9:15 PM
-
-