dbTalk Databases Forums  

DTS Export SQLto Access

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


Discuss DTS Export SQLto Access in the microsoft.public.sqlserver.dts forum.



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

Default DTS Export SQLto Access - 04-20-2005 , 04:49 PM






I am trying to export records from a table in SQL to MS Access for specific
field (AccountID) in my table. I need to dynamically pass the value to the
package when triggering the package from an asp page. I am able get this
work statically but am having trouble making this happen dynamically. I have
been looking at the dynamic properties task but cannot figure out how to use
it in this scenario.

--
Daniel Higdon

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

Default Re: DTS Export SQLto Access - 04-21-2005 , 03:35 AM






Create a global variable that can hold the AccountID. Set teh variable from
ASP after loading and before calling execute.
Change teh SQL to use a paarmeter placeholder (?) in the DataPump Task, then
click parameters. Map the variable to "Parameter 1"

SELECT ColumnName FROM AccountTable WHERE AccountID = ?


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


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

Quote:
I am trying to export records from a table in SQL to MS Access for
specific
field (AccountID) in my table. I need to dynamically pass the value to
the
package when triggering the package from an asp page. I am able get this
work statically but am having trouble making this happen dynamically. I
have
been looking at the dynamic properties task but cannot figure out how to
use
it in this scenario.

--
Daniel Higdon



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.