SqlDataAdapter.Fill

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry S

    #1

    SqlDataAdapter.Fill

    I want to know how the method Fill of the SqlDataAdapter
    is actually programmed.

    ie.

    SqlDataAdapter da = new SqlDataAdapter( );
    DataSet ds = new DataSet();
    da.Fill(ds);

    without using a ref or anything else i can pass ds to the
    Fill method and voila...wow, i have data in ds.

    i've tried unsuccessfully to replicate this behavior...any
    ideas?

    Thanks,
    Jerry S.
    TvRatings.Com
  • .Net User

    #2
    RE: SqlDataAdapter. Fill

    Hi Jerry,
    Yeah try to work with DataAdapter.
    just retrieve data and try to write in an xml file or string.
    SqlDataAdapeter has a method GetName using it you can develop your own DataSet.
    Retrieve data fwrite an xsl file or string.
    And using XMLReader read the file or string.

    Thanx

    Comment

    Working...