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

sql server programming

group:

How can I get the run-time value of SQL task property



How can I get the run-time value of SQL task property Jorvin NO[at]SPAM gmail.com
8/14/2007 10:37:22 PM
sql server programming: For example,I want to get the run-time value of SqlStatementSource
property,and record it into a log table.
Can I do it in the script task component?
Re: How can I get the run-time value of SQL task property Jorvin NO[at]SPAM gmail.com
8/14/2007 11:18:24 PM
[quoted text, click to view]

Thanks a lot first.
I am afraid that you misunderstood what I meant.
I am on SSIS.When the package executing, I want to get a property
value of a sql task component in the package.I tried to do it in a
script task ,but I don't know how to refrence the component by name .
What can I do?
Re: How can I get the run-time value of SQL task property Uri Dimant
8/15/2007 12:00:00 AM
Hi
Aha, you will be better of asking the question in .dts newsgopup and/or
visitin on www.ssis.com

[quoted text, click to view]

Re: How can I get the run-time value of SQL task property Uri Dimant
8/15/2007 12:00:00 AM
If I understood you try using the following
( I assumed you are on SQL Server 2005)

create table test ( i int identity not null primary key, j int not null
unique )
create table #log ( i int not null, j int not null)

insert into test (j)
output inserted.i, inserted.j into #log
select o.object_id from sys.objects as o

select * from #log
drop table #log, test;
go




[quoted text, click to view]

AddThis Social Bookmark Button