• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Copy a SQL 2000 Db using CF MX

Explorer ,
Aug 03, 2007 Aug 03, 2007

Copy link to clipboard

Copied

I'm looking for a good method to copy a database and generate the SQL create table scripts programmaticly using Coldfusion MX 7 and SQL Server 2000.

The idea is to have CF template that can read out all tables and columns from a development DB, and then generate the SQL query's to recreate the structure to a new db, sans data, on the fly.

I've gone looking around in the schema and i can't seem to find all the information i need to write my own script for the operation. Particularly i can't seem to find attributes for auto increment fields that are being used for Primary keys in many of the tables.

Any info on this sort of method is appreciated.
TOPICS
Database access

Views

341

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 04, 2007 Aug 04, 2007

Copy link to clipboard

Copied

google "ms sql system tables"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 04, 2007 Aug 04, 2007

Copy link to clipboard

Copied

LATEST
Very good search string, thanks!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation