robrodp
asked on
Exporting data form sql 2003
I would like to export data from a table in SQL 2003 in a way that I can import it again transparently.
Some fields like dates just export in ways that the info is not preservered.
Some fields like dates just export in ways that the info is not preservered.
You can export it using Import / Export wizard to a .CSV file
robrodp,
> in a way that I can import it again transparently.
If you wanna import it again back to the same server, then you can take a backup, and restore the database again
> in a way that I can import it again transparently.
If you wanna import it again back to the same server, then you can take a backup, and restore the database again
ASKER
I do not want to backupthe database just one table
Then it is better to Export the data as a CSV file
One more options is to create another table with the same structure in the same database but with different name. Whenever you feels to restore then you can delete/rename the current, rename the backedup table to 'current'
Something like
INSERT INTO UrTable_Bak
SELECT * FROM urTable
--For restoration
exec sp_rename 'urTable', 'urTable_old'
exec sp_rename 'urTable_bak','urTable'
Something like
INSERT INTO UrTable_Bak
SELECT * FROM urTable
--For restoration
exec sp_rename 'urTable', 'urTable_old'
exec sp_rename 'urTable_bak','urTable'
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.