WebService DataSet

From: Strider (Strider_at_discussions.microsoft.com)
Date: 09/27/04


Date: Mon, 27 Sep 2004 04:49:12 -0700

In my WebService i return a DataSet. However when i try an add a table from
this dataset into the database it does not work. It is very frustrating. Here
is what im trying to do. I create a seperate dataset so i can update each
table in the database serperately.

Dim webserv As New pmlDBService
        Dim myds As New DataSet
        Dim mydt As New DataTable
        myds = webserv.GetFullTables()
        mydt = myds.Tables("Routes").Copy
        ds1.Tables.Add(mydt)

Dim da2 As New SqlDataAdapter("SELECT * FROM Routes", conn2)
        Dim x As SqlCommandBuilder = New SqlCommandBuilder(da2)

        da2.Update(ds1, "Routes")



Relevant Pages

  • Re: Webservice problem (after iisreset)
    ... Server database and returning some data. ... service using the Microsoft WebService DHTML Behaviour (WebService ... it works normally, but on the first attempt after an iisreset, nothing ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: SQL server didnt exist or access denied
    ... Does the connect to SQL step return an error? ... I can't connect to our database from within my ... I have configured the webService to use "windows" authentication and to ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: DataSet Filtering ( C# + ADO.NET )
    ... mydataview.RowFilter = "mystring = x" ... always disconnected from the database. ... I get the info from the webservice in a DataSet and now ... > I'd like to query those results and display those results in a datagrid. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Newbie question
    ... Does the user under which this WebService runs have enough ... >which include interaction with SQL server database. ... >very same code segment from the test console application. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Error connecting to SQL Server through a Web Service???
    ... Drew - Thanks, I added ASPNET user to the database and it worked fine. ... However, I noticed when I try to use this webservice, I have to be connected ...
    (microsoft.public.dotnet.framework.webservices)