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. ASP.NET
  4. put data to another Table

put data to another Table

Scheduled Pinned Locked Moved ASP.NET
databasesql-serversysadminquestion
6 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
    Sarfaraj Ahmed
    wrote on last edited by
    #1

    I have alredy added a DataSet name Publications where I have add three tables. Table(0) is Query_Volume_VolumeLessons Table(1) is Query_Volume_Sectos Table(2) is Query_Volume_Themes Also put data on Table(0) from SQL SERVER DataBase Now How can I put data to Table(1) From Table(0) , using a sqlQuery Thanks

    Sarfarj Ahmed

    C 1 Reply Last reply
    0
    • S Sarfaraj Ahmed

      I have alredy added a DataSet name Publications where I have add three tables. Table(0) is Query_Volume_VolumeLessons Table(1) is Query_Volume_Sectos Table(2) is Query_Volume_Themes Also put data on Table(0) from SQL SERVER DataBase Now How can I put data to Table(1) From Table(0) , using a sqlQuery Thanks

      Sarfarj Ahmed

      C Offline
      C Offline
      chat_sp2001 yahoo com
      wrote on last edited by
      #2

      http://forums.digitalpoint.com/showthread.php?p=2524409 go through this it may be help full to you

      C 1 Reply Last reply
      0
      • C chat_sp2001 yahoo com

        http://forums.digitalpoint.com/showthread.php?p=2524409 go through this it may be help full to you

        C Offline
        C Offline
        chat_sp2001 yahoo com
        wrote on last edited by
        #3

        insert into t1 (select * from t2)

        S 3 Replies Last reply
        0
        • C chat_sp2001 yahoo com

          insert into t1 (select * from t2)

          S Offline
          S Offline
          Sarfaraj Ahmed
          wrote on last edited by
          #4

          Thanks a lot It does work

          Sarfarj Ahmed

          1 Reply Last reply
          0
          • C chat_sp2001 yahoo com

            insert into t1 (select * from t2)

            S Offline
            S Offline
            Sarfaraj Ahmed
            wrote on last edited by
            #5

            Hi I just done it in SQL SERVER DataBase and Create New Table but how I will do it VS and How will it execuite the sql command . Please send me some code, I cant figure it out Thanks

            Sarfarj Ahmed

            1 Reply Last reply
            0
            • C chat_sp2001 yahoo com

              insert into t1 (select * from t2)

              S Offline
              S Offline
              Sarfaraj Ahmed
              wrote on last edited by
              #6

              Public Function Qry_Volume_Sector(ByVal QryVolumeSector As DataTable) As DataTable Dim _DataSet As DataSet = New Publications() Dim _dataTable As Publications.Query_Volume_SectorsDataTable = New Publications.Query_Volume_SectorsDataTable() Dim cmd As SqlCommand = New SqlCommand() Try cmd.CommandType = CommandType.Text cmd.CommandText = "Insert INTO _dataTable (Sector, Voltype, Lesson) Select Title, Voltype, Lesson From QryVolumeSector Where Voltype LIKE '%SECTOR'" '_DataSet.Tables(2).Load(cmd.ExecuteReader()) Catch ex As Exception End Try Return _DataSet.Tables(2) End Function

              Sarfarj Ahmed

              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