I’m kind of new to SQL Server/C#.
My teacher thought I should write data to the database using C# using SqlConnection and SqlCommand.
I have a friend who wants me to help her on her project but I have no clue how to get data from the database or how to show a table from the database.
Hope someone find this question useful, especially the beginners out there. 🙂
Also, how can I get a specific element in a row?
If your using windows forms then perhaps you may use
DataGridViewcontrol – see this very simple tutorial to get you started: http://www.dotnetperls.com/datagridview-tutorialSimilarly for web applications, you may use
GridViewcontrol – see MSDN for various examples: http://msdn.microsoft.com/en-us/library/aa479339.aspx