Datatable issue

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

    #1

    Datatable issue

    Hi all,

    How do I programmaticall y determine if a datatable already exists in a
    dataset?

    Regards
    John.


  • Shiva

    #2
    Re: Datatable issue

    DataSet.Tables. Contains ("<table name>")

    "John" <a@b.com> wrote in message
    news:OCbKvdBkEH A.3876@TK2MSFTN GP15.phx.gbl...
    Hi all,

    How do I programmaticall y determine if a datatable already exists in a
    dataset?

    Regards
    John.



    Comment

    • Cor Ligthert

      #3
      Re: Datatable issue

      Shiva,

      Just an addition, When is that name filled of course in the tablename
      By instance with
      da.Fill(ds, thistablename)

      When the table has no name you cannot find it.

      Cor


      Comment

      • Shiva

        #4
        Re: Datatable issue

        I agree Cor. I assume the developer would have given a name to the DT.

        Thanks.

        "Cor Ligthert" <notfirstname@p lanet.nl> wrote in message
        news:OYqL4oBkEH A.4092@TK2MSFTN GP10.phx.gbl...
        Shiva,

        Just an addition, When is that name filled of course in the tablename
        By instance with
        da.Fill(ds, thistablename)

        When the table has no name you cannot find it.

        Cor



        Comment

        • John

          #5
          Re: Datatable issue

          Thanks a lot...

          "Shiva" <shiva_sm@onlin e.excite.com> wrote in message
          news:utcXThBkEH A.1656@TK2MSFTN GP09.phx.gbl...[color=blue]
          > DataSet.Tables. Contains ("<table name>")
          >
          > "John" <a@b.com> wrote in message
          > news:OCbKvdBkEH A.3876@TK2MSFTN GP15.phx.gbl...
          > Hi all,
          >
          > How do I programmaticall y determine if a datatable already exists in a
          > dataset?
          >
          > Regards
          > John.
          >
          >
          >[/color]


          Comment

          Working...