Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Script to Insert data
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Script to Insert data
Divers
Thread ID:
00960451
Message ID:
00960451
Vues:
74
Hi Sergey

Thought I would point this directly at you since you will probably be the one to answer <s>

I understand how to create a script to create a table. But how would I create a script to have insert commands to populate a table with data existing in a current table.

I am working on a project with other developers. I periodically have to restore a backup of the common database we are using, but I have sometimes dummied up test data in one of the tables in my local installation. I would like to create a sql script that does inserts of this data into the same table once it has been restored from backup ( where it is probably empty )

Hope the question makes sense. I am sure there is some easy way to accomplish this, but short of writing out the script manually the solution is eluding me

TIA


Charles Hankey

Though a good deal is too strange to be believed, nothing is too strange to have happened.
- Thomas Hardy

Half the harm that is done in this world is due to people who want to feel important. They don't mean to do harm-- but the harm does not interest them. Or they do not see it, or they justify it because they are absorbed in the endless struggle to think well of themselves.

-- T. S. Eliot
Democracy is two wolves and a sheep voting on what to have for lunch.
Liberty is a well-armed sheep contesting the vote.
- Ben Franklin

Pardon him, Theodotus. He is a barbarian, and thinks that the customs of his tribe and island are the laws of nature.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform