The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Database Connectivity using WebService
18 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

ibrahim harunaPosted Jun 12, 2014, 6:33 AM
Thank you for this article. if i have application A with a db and Application B with its own db. and I want any changes i made in Application B db to update a table from Application A. How can i achieve that using web services
afzal khanPosted Jun 26, 2013, 3:34 AM
Thanks u very much........it working.............
AntarikshPosted Jun 4, 2013, 8:03 AM
Thanks a lot....
syed masoodPosted Aug 29, 2012, 6:07 AM
thank you
rakesh singheditedPosted Jul 18, 2012, 7:49 AMEdited Jul 18, 2012, 7:49 AM
Its very good artical for dotnet using dot.net web service but i want dotnet application which is use php webservice to check database connected or not connected before call any webservice methodes. Rakesh
Heron DantasPosted Jan 26, 2011, 11:54 AM
Very good, you help me so much, thank you.
Steve StacelPosted Jun 19, 2010, 5:58 PM
Raj, I tried to use your code without doing anything to it. I am getting the following error: Object reference not set to an instance of an object. on this line of code: using (SqlConnection connection = new SqlConnection(ConfigurationManager.ConnectionStrings["dataConnectionString"].ConnectionString))
Steve StacelPosted Jun 19, 2010, 5:34 PM
Raj, You certainly make webservices look easy. I do not see a connection string to the Northwinds database. Where is that located? DO you have to add a datagridview to a form or is it created dynamically from the webservice? Thanks Steve Stacel [email protected]
le phanPosted May 4, 2010, 12:33 PM
Thanks you very much!
vijay rajuPosted Apr 24, 2010, 4:24 AM
Hai its ok that you open the data base connection, but at what point the connection must be closed.
Charan RathodPosted Dec 17, 2008, 5:32 AM
Hi... My problem is that my ms access database is on my server & i want to connect with that database from c#.Net window application using web service or any thing. pls it's urgent for me.
Qais AkhtareditedPosted Nov 28, 2008, 1:54 AMEdited Nov 28, 2008, 2:07 AM
using (SqlConnection connection = new SqlConnection (ConfigurationManager.ConnectionString"dataConnectionString"].ConnectionString)) A simpe slip of key that may produce error --ConfigurationManager.ConnectionString"dataConnectionString"].ConnectionString It should be like this ConfigurationManager.ConnectionString["dataConnectionString"].ConnectionString Thanks
Mobeen NoorbashPosted Jan 22, 2008, 5:33 AM
I was stuck with a webservice to display data in datagrid. This article helped me to resolve it...