-- Table Backup with native SQL, Process 2
Version : SQL 2008 or later.
Table Backup.
You can get the result in 4 types...
Process 1 : Generating scripts
Process 2 : Import/Export Option (T-SQL/SSIS)
Process 3 : Inserting into new table (Select * into newtab from baktab)
Process 4 : Inserting into existing table (Create newtable with same structure as
Original table, Insert into newtable select * from backtab)
Here we can see Process 2 :
You have an option with Import/Export Wizard.
See below how it works..
Right Click on the database Tasks -> and click Import Data... (OR) Export Data...as below
fig : 1 DBProperties_rightClick
both bring the same window as below...
fig : 1 a) Import and Export Wizard
Cleck next and Choose the source, where you wanted to retrive data from(SQL,EXCEL,Flat File and etc...) see below.
fig : 2 Select Source
Click next and Choose the destination, where you wanted to load the data(SQL,EXCEL,Flat File and etc...) see below..
fig : 3 Select Destination
Choose one of this as the following figure....
fig : 4 Type
Now you have to configure the destination file as bleow.. As I have selected my destination is Flat file, I just need to select Row Delimiter and Column delimiter from the drop down.
fig : 5 Configuring Destination
So, Now you have two options here, Select Run Immediately to have the import/export task done now.
Or you can check the other box as Save SSIS Package and will let you run whenever you want in future.
Please look at below.
fig : 7 Finish
fig : 8 Result
No comments:
Post a Comment