all groups > sql server dts > august 2007 >
You're in the

sql server dts

group:

XML Log (-> file size!)


XML Log (-> file size!) Frederik V
8/16/2007 12:00:00 AM
sql server dts:
Hi everyone,


I'm asked to continue an existing project in SSIS, which currently uses XML
for logging. I noticed that we now have log files up to 200MB in size. Is
there a way to limit those log files in size?

Please do keep in mind that I'm still learning SSIS, so keep your answer as
simple as possible :-)



Many thanks for any help!


Re: XML Log (-> file size!) Frederik V
8/20/2007 12:00:00 AM
This is a good idea, I will discuss this with my team, thx for your help!

Kind regards,

Frederik

[quoted text, click to view]

Re: XML Log (-> file size!) jhofmeyr NO[at]SPAM googlemail.com
8/20/2007 4:08:18 AM
[quoted text, click to view]

Hi,

I tend to log to a new file every day - then size management becomes a
function of file archive policy.

There are a number of ways to implement logging in this way - my
preferred method is to set the ConnectionString property for the
logging file connection using an expression.

To do this:
1) Right-click on the connection in the connection manager and select
Properties.
2) Click on the Expressions property and open the Property Expressions
Editor.
3) Select "ConnectionString" from the Property drop-down and open the
Expression Builder.
4) Type in your filename expression (e.g. "C:\Logs\SSISLog_" + @date +
".xml")

If this isn't an option for you, you might want to review your logging
options. SSIS provides quite a detailed level of logging and it may
just be that you need to configure it to only log the information that
you need for support / reporting purposes.

Good Luck!
J
Re: XML Log (-> file size!) Frederik V
8/21/2007 12:00:00 AM
Ok, works like a charm, my files look like this:

yyyy_MM_mylogfileabcxyz-LOG.xml

.... for sorting purposes, which makes it easy to delete old files at will!

[quoted text, click to view]

AddThis Social Bookmark Button