Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. WebService and Dataset

WebService and Dataset

Scheduled Pinned Locked Moved Web Development
helpcsharpdatabasetutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sybux2000
    wrote on last edited by
    #1

    Hi, I've created a little webservice. I want to query, update and delete datas from 2 tables So I've created a SQLConnection and a SQLDataAdapter. The problem is with the SQLDataAdapter. I don't know how to tell .Net that the 2 tables are linked and must work togheter. I've tried to made this with the "Configure Data Adapter Wizard" but it doesn't work. Any1 know good idea to help me ? regards Sybux

    S 1 Reply Last reply
    0
    • S sybux2000

      Hi, I've created a little webservice. I want to query, update and delete datas from 2 tables So I've created a SQLConnection and a SQLDataAdapter. The problem is with the SQLDataAdapter. I don't know how to tell .Net that the 2 tables are linked and must work togheter. I've tried to made this with the "Configure Data Adapter Wizard" but it doesn't work. Any1 know good idea to help me ? regards Sybux

      S Offline
      S Offline
      susree
      wrote on last edited by
      #2

      Hi , If you want to link 2 tables you can use dataset for that. In the dataset itself you will have to define that relationship . something like this custDS.Relations.Add("CustOrders", custDS.Tables["Customers"].Columns["CustID"], custDS.Tables["Orders"].Columns["CustID"]); I hope you are asking about this only. thanks

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups