Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 63431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:37:54+00:00 2026-05-10T18:37:54+00:00

We have a common problem of moving our development SQL 2005 database onto shared

  • 0

We have a common problem of moving our development SQL 2005 database onto shared web servers at website hosting companies.

Ideally we would like a system that transfers the database structure and data as an exact replica.

This would be commonly achieved by restoring a backup. But because they are shared SQL servers, we cannot restore backups – we are not given access to the actual machine.

We could generate a script to create the database structure, but then we could not do a data transfer through the menu item Tasks/Import Data because we might violate foreign key constraints as tables are imported in an order the conflicts with the database schema. Also, indexes might not be replicated if they are set to auto generate.

Thus we are left with a messy operation:

  1. Create a script in SQL 2005 that generates the database in SQL 2000 format.
  2. Run the script to create a SQL 2000 database in SQL 2000.
  3. Create a script in SQL 2000 that generates the database structure WITHOUT indexes and foreign keys.
  4. Run this script on the production server. You now have a database structure to upload data to.
  5. Use SQL 2005 to transfer the data to the production server with Tasks/Import data.
  6. Use SQL 2000 to generate a script that creates the database with indexes and keys.
  7. Copy the commands that generate the indexes and foreign keys only. These are located after the table creation commands. Note: In SQL 2005, the indexes and foreign keys are generated as one and cannot be easily separated.
  8. Run this script on the production database.

Voila! The database is uploaded with all data and keys/constraints in place. What a messy and error prone system.

Is there something better?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:37:54+00:00Added an answer on May 10, 2026 at 6:37 pm

    Scott Gu had written few posts on this topic :

    SQL Server Database Publishing Toolkit for Web Hosting

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 160k
  • Answers 160k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Direct answer: you can not do that. PHP insists on… May 12, 2026 at 11:35 am
  • Editorial Team
    Editorial Team added an answer session.load() loads a single entity instance. No sorting is involved.… May 12, 2026 at 11:35 am
  • Editorial Team
    Editorial Team added an answer I tend to use project folders as a way of… May 12, 2026 at 11:35 am

Related Questions

Here at work (a multi-billion dollar manufaturing company with a 12 person Windows development
I have the unfortunate task of cleaning up a bunch of old ColdFusion code.
I have a bit of an architecture problem here. Say I have two tables,
I have a scenario which is not easy to explain, but I am sure

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.