sql server - Move database tables, doing some transformations - SSIS -


i need move data 1 ms sql database another. however, destination database bit different. example, table has same rows, different data types , on. read, looks ssis tool, however, how process , components toolbox use example above? concern might have create 1 data flow source each table or that. anyway, less time consuming option?

thank you!

given it's disposable task , data volume low, i'd use import/export wizard generate basics of moving tables. can either right-click on database in ssms, tasks, export... or run dtswizard.exe commandline/start->run

either way, you'll have wizard walking through variety of screens. of them self-explanatory never stops me commenting.

first 2 screens define source , destination. default of both of of "sql server native client 10.0" correct, define source , destination server names , database/catalogs.

3rd screen accept default of copoy data 1 or more tables or views.

4th screen allows pick source tables , default destination same table , schema. if of tables have identity columns, want click on "edit mappings..." button , check "enable identity insert" option. needs done per table.

5th screen rather important. need manipulate data before can target tables, uncheck run (unless feel lucky) , check save ssis package. save file system, change package protection level "do not save sensitive data"

6th screen asks package should saved , should called. i'm naming so_araujo , saving c:\sandbox\ssishackandslash\ssishackandslash\so_araujo.dtsx , call not matter, merely make note of is.

click finish , review actions. if there errors of type "failure inserting read-only column" make note missed identity inserts.

open visual studio, create new project of type sql server integration services (under business intelligence section) , right click on project (mine's called ssishackandslash) , select add, new item... select package created on 6th screen , double click open it.

the import/export wizard ungood thing of putting lots of unrelated source & destinations in dataflow. since one-off, wouldn't care vs speed of letting gui add tables , wiring them up.

now comes fun of coercing data types right type , else need done. you'll looking @ combination of derived columns transformations , data conversion transformations , remapping column in destination table. if have particular issues, sing out. might have done bit of ssis ;)

an alternative solution use ezapi script out bulk of data movement , hand edit 20% needs massaged.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -