CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2001
    Location
    Kerala, India
    Posts
    4

    Copying Database objects between 2 Database using VB

    Hello,

    I am using VB6 and SQL Server 2000. Is there any method for coping database objects(Table (without data), procedure,views,etc) from one database to another by running a script from VB.

    Thanks in advance
    Kiran

    Aum Namah Shivaya

  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Copying Database objects between 2 Database using VB

    for SQL server it must be something like this. It must create a new table.
    insert into db2.dbo.table2 select * from db1.dbo.table1

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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