dbTalk Databases Forums  

Dynamic Transformation Task

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


Discuss Dynamic Transformation Task in the microsoft.public.sqlserver.dts forum.



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

Default Dynamic Transformation Task - 10-25-2005 , 07:25 AM






Hi,
I'm not much exp. in DTS programing.I want to transfer Excel Data to SQL
Server.
Now my SQLDatabase and Excel file path are dynamic.(user will enter during
runtime).
I've created the DTS package in which i've specify the transformation task
for Excel Source to SQL Server Destination.
When i set the transformation property it asks source file and destination
table and transformation info.It will create the table during design time to
map the columns.
Now i'm able to set the excel file during runtime but could not able to set
Database name dynamically.
When i run the package for the specific database which is
set in the transformation it works fine, but when i change the
database name it refers the same old database name which i've mentioned during
design time.
Is there any way to change this database name ?
--
Thanks & Regards
Malkesh

Reply With Quote
  #2  
Old   
Darren Green
 
Posts: n/a

Default Re: Dynamic Transformation Task - 10-25-2005 , 07:42 AM






Change the Data Flow task's DestinationObjectName as well.

An example of using script to do this-

Changing the DataPump Source and Destination Tables
(http://www.sqldts.com/default.aspx?213)


--
Darren Green
http://www.sqldts.com
http://www.sqlis.com

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

Quote:
Hi,
I'm not much exp. in DTS programing.I want to transfer Excel Data to SQL
Server.
Now my SQLDatabase and Excel file path are dynamic.(user will enter during
runtime).
I've created the DTS package in which i've specify the transformation task
for Excel Source to SQL Server Destination.
When i set the transformation property it asks source file and destination
table and transformation info.It will create the table during design time
to
map the columns.
Now i'm able to set the excel file during runtime but could not able to
set
Database name dynamically.
When i run the package for the specific database which is
set in the transformation it works fine, but when i change the
database name it refers the same old database name which i've mentioned
during
design time.
Is there any way to change this database name ?
--
Thanks & Regards
Malkesh



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.