CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2003
    Posts
    23

    creating a new table in DataBase

    hello,
    i need to read data from a table call tabA in a DataBase and create another table call tabB during runtime in the same DB. tabB will contain the duplicate data of tabA. Can anyone post me the code to do it.

    Thanks in advance.
    Last edited by lai; July 23rd, 2003 at 11:51 PM.

  2. #2
    Join Date
    May 2002
    Location
    Colombo,Sri Lanka
    Posts
    1,110
    Dim InsertCmdString As String
    InsertCmdString = "Create Table TAB"
    Dim mySqlCommand As SqlCommand = New SqlCommand(InsertCmdString, myConnection)

    Dim InsertCmdString As String
    InsertCmdString = "Insert into TaB From TAA"
    Dim mySqlCommand As SqlCommand = New SqlCommand(InsertCmdString, myConnection)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured