dbTalk Databases Forums  

Inserting data into all the relevant tables

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Inserting data into all the relevant tables in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
anm
 
Posts: n/a

Default Inserting data into all the relevant tables - 04-27-2006 , 04:52 AM






I am going to import the data which is required for creating reports.
The data in the table is not easily queried, therefore I have created other
tables to extract the data from this main table.

As importing data would be a weekly procedure,I will have to overwrite the
existing data with the new data and have all the data go through to all the
sub-tables. So far I have created queries in the SQL Query Analyzer but this
would require having to manually run all the queries, how can I make all the
data in sub-tables be easily updated with the new data from the main table
rather than running queries manually?







Reply With Quote
  #2  
Old   
Walter Mallon
 
Posts: n/a

Default Re: Inserting data into all the relevant tables - 04-27-2006 , 01:15 PM






create a dts package that uses the execute sql task to call your queries.
Remember to truncate the target tables first. All you need in the package
is a connection object and an execute sql task object.

Walter
"anm" <anm (AT) discussions (DOT) microsoft.com> wrote

Quote:
I am going to import the data which is required for creating reports.
The data in the table is not easily queried, therefore I have created
other
tables to extract the data from this main table.

As importing data would be a weekly procedure,I will have to overwrite the
existing data with the new data and have all the data go through to all
the
sub-tables. So far I have created queries in the SQL Query Analyzer but
this
would require having to manually run all the queries, how can I make all
the
data in sub-tables be easily updated with the new data from the main table
rather than running queries manually?









Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.