Home Forums SQL Server 7,2000 SQL Server Newbies Generate sql script of a table schema in SQL 2000 through script RE: Generate sql script of a table schema in SQL 2000 through script

  • You can get the base data needed to create your table from "sp_help table_name".

    Data can be loaded into a cursor then a script can be built on-the-fly by adding the needed DDL syntax the same way you do dynamic sql.

    _____________________________________
    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.