Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I want the coding for connecting application page to Sql.Plz help me

share|improve this question
    
Please be more clear with your question, there is no need for any task to make a sql connection with sharepoint, please state what it is that you want to do and how you intend on going about it. –  Hugh Wood Nov 2 '12 at 9:43
add comment

closed as not a real question by SPDoctor Dec 4 '12 at 12:04

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

2 Answers

An application page can run pretty much any code you like, in C# or VB (and probably F# too, since it's .NET).

I'd suggest you start looking at the documentation for SqlClient. You can find many, many tutorials for using these classes on Google.

share|improve this answer
    
Thank u so much. –  varna Nov 2 '12 at 9:41
add comment

its not a good practice to directly interface between SharePoint and SQL server, you can look at an alternate option of web services which directly talks to SQL server and later integrate it on the application page

share|improve this answer
    
Can u plz give some example code –  varna Nov 2 '12 at 11:53
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.