dbTalk Databases Forums  

SSIS Package Connection Manager for Comma Delimited Log File

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


Discuss SSIS Package Connection Manager for Comma Delimited Log File in the microsoft.public.sqlserver.dts forum.



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

Default SSIS Package Connection Manager for Comma Delimited Log File - 08-27-2009 , 01:49 PM






Currently receiving error for log file creation upon package start.
Are environment variables supported for path determination of log file? Is
there a special syntax to use for the log file path?
Would like to use %USERPROFILE%\Desktop\Log.csv

Reply With Quote
  #2  
Old   
Todd C
 
Posts: n/a

Default RE: SSIS Package Connection Manager for Comma Delimited Log File - 08-28-2009 , 07:53 AM






You can use the Configurations manager and retrieve config values from XML
docs, SQL Server, Parent Packages, and yes, Environment Variables. Assign the
value to a string Variable in the package.
(for help on Configurations, see by blog: http://toddchitt.wordpress.com/)

Then, click the Log File Connection Manager, and in the Expressions
property, set up an expression for the Conenction String property as:
[User::MyVariable] + "\\Desktop\\Log.csv"

(NOTE: The \ is a reserved character so must be 'escaped', hence the double
\\)

HTH

=====
Todd C


"jsh02_nova" wrote:

Quote:
Currently receiving error for log file creation upon package start.
Are environment variables supported for path determination of log file? Is
there a special syntax to use for the log file path?
Would like to use %USERPROFILE%\Desktop\Log.csv

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.