dbTalk Databases Forums  

DTS Logging to SQL Server

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


Discuss DTS Logging to SQL Server in the microsoft.public.sqlserver.dts forum.



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

Default DTS Logging to SQL Server - 04-28-2005 , 04:36 AM






Hi All,

I would like to be able to dynamically change the server to which logging
occurs for a given DTS package.

For example, I have a DTS that is configured to log to Server A. I would
like to pass as a parameter Server B and have the DTS package log to Server
B. So far it seems as though this is ignored, as though logging has already
begun to Server A.

Can anyone help?

Kind Regards,
Doug


Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: DTS Logging to SQL Server - 04-28-2005 , 01:06 PM






Correct it has already started and the values you send will take effect the next time you press go.

Here it was I did in an Active Script task

DTSGlobalVariables.Parent.LogToSQLServer = true
DTSGlobalVariables.Parent.LogServerName = "MyServer"

I did not allow logging to sql server on the first run
After the first run I checked the package properties and now logging to sql server is allowed.
I checked in msdb.dbo.sysdtspackagelog and there was no rows.

I re-execute and I had a row in the msdb.dbo.sysdtspackagelog table

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


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

Quote:
Hi All,

I would like to be able to dynamically change the server to which logging
occurs for a given DTS package.

For example, I have a DTS that is configured to log to Server A. I would
like to pass as a parameter Server B and have the DTS package log to Server
B. So far it seems as though this is ignored, as though logging has already
begun to Server A.

Can anyone help?

Kind Regards,
Doug




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.