DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Error while copying table

  1. #1
    Join Date
    Sep 2007
    Posts
    19

    Error while copying table

    I have attached a script which I got it from database A and ran it in database B. Got errors. Please find the attachment. I am trying to copy a table from database A to database B.
    Attached Files Attached Files

  2. #2
    Join Date
    Feb 2013
    Posts
    3
    lg123,
    Did you have the ';' or '/' in between the individual sql statements in the original text? If not, then you're trying to run several creates together into one. You also have what appears to the create index prior to create table commands.

  3. #3
    Join Date
    Sep 2007
    Posts
    19
    I found out the mistake. Two different sql statements have overlapped.

    wrong

    )create table.....


    right
    )
    create table.....


    But I dont know how the script was made wrong as I got it from the already existing table.

  4. #4
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Statements did not overlap, they are not properly terminated as pointed out by csimmons
    Pablo (Paul) Berzukov

    Author of Understanding Database Administration available at amazon and other bookstores.

    Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.

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