How do I connect to SQL Server using C#?

I built a web interface using Visual Studio 2005 and a database in SQL Server 2005. How can I connect to the database from the web interface so that I can access and work with database across the internet. Also suggest any useful links if they are any

  • Answer:

    You probably used ASP.NET so in your application you can use ADO.NET objects and run SQL queries, stored procedures and such to get data in and out of your database. Here is a link to get started: http://msdn2.microsoft.com/en-us/data/aa937699.aspx

r_jack at Answerbag.com Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.