Connecting ASP.NET page to an external database
I have created a database in SQL Server 2008 and I want to use this database in my ASP.NET project to insert, update , delete records. Kindly help me in this regard.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramesh MaruthiPosted Sep 12, 2014, 10:26 AM
Please follow this link dude
http://www.onlinebuff.com/article_step-by-step-select-insert-update-and-delete-using-aspnet-c-and-adonet_32.html
Abhishek KumarPosted Sep 12, 2014, 7:27 AM
YourDb server : server
Abhishek KumarPosted Sep 12, 2014, 7:26 AM
In your Asp.net project find web.config file.
Add connection string in
Read the connection string from C# code and use it for insert, update , delete records.
Let me know if you want sample code?
Abhishek