Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS log file created twice, would someone please try this

$
0
0
I started off trying to explain the behavior, but it got too long and wasn't sure if people would follow it. So rather then trying to explain it, I would like to ask someone to try the following to see if they can dumplicate this odd behavior I am seeing on my side.

Please follow these steps, and let me know what you get.

(1) Take any simple working package, and create an SSIS log.

(2) Use the following for the expression to set the connection string for the log file's connection manager. For simplicity, let's say the file goes in a folder called "C:\SSIS_log\". For you it could be somewhere else.

Expression:

"C:\\SSIS_log\\"
+ "logfile_"
+ (DT_STR,4,1252)DATEPART( "yyyy" , @[System::StartTime]   )
+ RIGHT("0" + (DT_STR,4,1252)DATEPART( "mm" ,  @[System::StartTime]  ), 2)
+ RIGHT("0" + (DT_STR,4,1252)DATEPART( "dd" , @[System::StartTime]   ), 2)
+ RIGHT("0" + (DT_STR,4,1252)DATEPART( "hh" , @[System::StartTime]   ), 2)
+ RIGHT("0" + (DT_STR,4,1252)DATEPART( "mi" ,  @[System::StartTime]  ), 2)
+ RIGHT("0" + (DT_STR,4,1252)DATEPART( "ss" , @[System::StartTime]   ), 2)
+ ".txt"

When you evaluate this expression, you should see that it appends a time stamp that goes down to the minute and second of the package start time.

(3) Delete any existing files in the log directory.

(4) Run the package.

Make the following observations.
(A) How many log files do you get?
(B) And what do you see in the log file(s)?
(C) What time stamp do you have in name of the log file(s)?

Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>