Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 14th, 2003, 07:09 AM
Registered User
 
Join Date: Jul 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with the ddq task.... HELLLPP!!!

Hi everyone,
I´m having a problem in DTS with making the loading through DDQ!! It doesn´t give my any errors but the fact is that it doesn´t load me anything!!
I have the following code:
Function Main()
DTSDestination("chave_artigo")=DTSGlobalVariables( "@chave_artigo")
DTSDestination("artigo") = DTSSource("artigo")
DTSDestination("descr") = DTSSource("descr")
DTSDestination("descr_pos") = DTSSource("descr_pos")
DTSDestination("cod_seccao") = DTSSource("cod_seccao")
DTSDestination("cod_familia") = DTSSource("cod_familia")
DTSDestination("cod_sub_familia") = DTSSource("cod_sub_familia")
.....
if IsEmpty(DTSLookups("existe").Execute(DTSSource("ar tigo"))) then
DTSGlobalVariables("@chave_artigo").Value=DTSGloba lVariables("@chave_artigo").Value+1
Main=DTSTransformStat_InsertQuery
else
DTSGlobalVariables("@artigo_1") = DTSSource("artigo")
DTSGlobalVariables("@chave_artigo_2")=DTSDestinati on("chave_artigo")
......(store procedure call)
Main=DTSTransformStat_UpdateQuery
end if
End Function


And my insert clause is:

INSERT
INTO ARTIGO_DM
(chave_artigo, artigo,
descr, descr_pos, cod_seccao, cod_familia, cod_sub_familia,
cod_und_base, marca, und_media_capac, und_med_venda,

fact_conv_capac, gama_preco, tipo_shopping,
grau_visibilidade, permanente, situacao, cod_dir_comercial,
dir_comercial, cod_segmento_mercado,

segmento_mercado, cod_grupo_categoria, grupo_categoria, seccao,
familia, sub_familia, und_base, divisao, cod_divisao, cod_departamento,

departamento, tp_marca, cod_familia_parcial,
cod_sub_familia_parcial, cod_und_base_parcial, fornecedor_prior,
manutencao_geral)
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
?, ?, ?, ?, ?, ?, ?, ?)


Kind Regards,
Lucinda








Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add task in Scheduled Task programatically amitjoshipune C# 2 July 31st, 2008 05:42 AM
WebService Helllpp Plz Core Visual Basic 2005 Basics 0 June 2nd, 2007 05:09 AM
Execute Task from ActiveX Script Task PorcupineRabbit SQL Server DTS 1 January 10th, 2006 12:37 PM
DDQ Update Only timsweet SQL Server DTS 1 July 21st, 2005 10:14 AM
Error description from DDQ OnInsertFailure asharma SQL Server DTS 0 June 23rd, 2004 11:25 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.