DataSet and View

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

    #1

    DataSet and View

    How can I fill DataSet witch data from view?
    Sample:
    daDictionary = new OleDbDataAdapte r("select * from " + viewName,
    myConnection);
    daDictionary.Fi ll( myDataSet, viewName);

    What must be done to do it?

    Regards
    Krzysztof


  • Miha Markic

    #2
    Re: DataSet and View

    Hi,

    The same as filling from table.
    Is there any error you are getting?

    --
    Miha Markic - RightHand .NET consulting & software development
    miha at rthand com

    "Krzysztof" <kkdiesel@poczt a.onet.pl> wrote in message
    news:bq4iam$1dm $1@news.onet.pl ...[color=blue]
    > How can I fill DataSet witch data from view?
    > Sample:
    > daDictionary = new OleDbDataAdapte r("select * from " + viewName,
    > myConnection);
    > daDictionary.Fi ll( myDataSet, viewName);
    >
    > What must be done to do it?
    >
    > Regards
    > Krzysztof
    >
    >[/color]


    Comment

    • Selvin

      #3
      Re: DataSet and View


      <ciach>[color=blue]
      > How can I fill DataSet witch data from view?
      > Sample:
      > daDictionary = new OleDbDataAdapte r("select * from " + viewName,
      > myConnection);
      > daDictionary.Fi ll( myDataSet, viewName);[/color]

      did you open myConnection before you using it?

      pozdrawiam

      Przemek Sulikowski
      ps. i dlaczego nie zapytales wczesniej na alt.pl.comp.lan g.charp


      Comment

      • Miha Markic

        #4
        Re: DataSet and View

        Hi Selvin,

        There is no need to open the connection before - Fill is smart enough to
        open/close it if it is closed...

        --
        Miha Markic - DXSquad/RightHand .NET consulting & software development
        miha at rthand com

        Developer Express newsgroups are for peer-to-peer support.
        For direct support from Developer Express, write to support@devexpr ess.com
        Bug reports should be directed to: support@devexpr ess.com
        Due to newsgroup guidelines, DX-Squad will not answer anonymous postings.

        "Selvin" <selvin_nospam@ nospam_osadkows ki.com.pl> wrote in message
        news:bq4kuv$95o $1@news.onet.pl ...
        [color=blue]
        > did you open myConnection before you using it?[/color]


        Comment

        Working...