none
Question - Would like to find a way to taking some data from production database to a demo database (New Database). RRS feed

  • 問題

  • 你好

    我想係公司係production database 度
    take 個subset 出o黎用o黎做demonstration
    e.g. 只係extract 幾個 client 既information 出o黎
    當然係所有既相關既data 都要extract 出來

    我想問呢
    有什麼方法可能 maintain 到 個table structure
    又可以 copy d data去另一個database 呢

    我公司係用緊sql 2000 的
    個production database 有 1xx gb 咁大

    希望大家可以比d 意見我

    謝謝大家
    2008年7月17日 下午 03:53

解答

所有回覆

  • You can use following to get data to new table:

     

    select ... into new_table_name from db_name.schema.table_name where ...

    2008年7月18日 下午 02:24
  • Hi Rmiao

    Thanks for your information.

    Will it create all the constraint from the original table as well?

    Thanks a lots
    2008年7月18日 下午 03:23
  • No, you need script them in source table and create in new table with the script.

     

    2008年7月19日 下午 04:25