Database(s)
Hi I have a website with a database I would like to connect to, inorder to get information on said database and also edit information. I am new to using c# with databases and am unsure on how to start. I have a database already setup on my website I just dont know how to connect to it and get information off of it ect. So any help on this matter would be great! Thank you for your time.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Scott LysleRank #49 · 31K reputationPosted Feb 18, 2008, 9:50 PM EST
That is sort of a tall question. Your options are many and somewhat dependent upon your development environment (which version of the IDE and framework you are using). How you connect to the database is also dependent upon what database you are using (SQL Server 2000, 2005, MS Access, MySQL, Oracle...).
This would be a good place in general to start looking into what is required:
http://samples.gotdotnet.com/quickstart/aspplus/
Michael20 reputationPosted Feb 19, 2008, 7:32 AM EST
Thank you for your response. I am not sure what my DB system my web host is using I will find out. I looked at the link you posted but is it possible to connect via a C# desktop program? I am still learning C# and not very knowledgeable in ASP.net code.
Ryan AlfordRank #1,411 · 1.2K reputationPosted Feb 19, 2008, 7:58 AM EST
also, you can connect a c# application to the database IF the web host allows remote connections. some do not.