In message <O1F$WHsVFHA.1796 (AT) TK2MSFTNGP15 (DOT) phx.gbl>, erymuzuan
<erymuzuan (AT) yahoo (DOT) com> writes
Quote:
We had a DTS package written by presious staff. which import data from
MS Access database to SQL Server 2000. So basically what;s he'd done
was like direct mapping from Access Columen to SQL Server column. and
we have a new request to somehow do some kind of upfront processing to
the data.
.e.g in one column called col1 , datatype is text, value is S.99.10 ,
we need to split this into 3 colums, so i wrote a scalar fuction to do
just that. So is it possible for me to run this fuction when the DTS
package is run, and if so.. how?
TIA |
Using the DataPump task you do not have statement level control over the
actual insert into SQL. You could look at the Data Driven Query task as
for this you actually write the INSERT statement, so you can call your
function in that statement.
The alternative way would be to use an ActiveX Script Transform, and
implement your function in VBS, calling it to assign the values to the
destination columns.
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com
PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org